[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master ccc08c9 08/66: Eliminate one `setq'

From: Dmitry Gutov
Subject: [elpa] master ccc08c9 08/66: Eliminate one `setq'
Date: Tue, 13 Jan 2015 02:44:44 +0000

branch: master
commit ccc08c95f34280cfe932ed993264cde2e471ec4e
Author: Dmitry Gutov <address@hidden>
Commit: Dmitry Gutov <address@hidden>

    Eliminate one `setq'
 company-cmake.el |    5 ++---
 1 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/company-cmake.el b/company-cmake.el
index 7170f71..cb17030 100644
--- a/company-cmake.el
+++ b/company-cmake.el
@@ -79,9 +79,8 @@ They affect which types of symbols we get completion 
candidates for.")
     ;; If hash is empty, fill it.
     (unless (gethash arg company-cmake--candidates-cache)
-        (let ((res 0))
-          (setq res (call-process company-cmake-executable nil t nil arg))
-          (unless (eq 0 res)
+        (let ((res (call-process company-cmake-executable nil t nil arg)))
+          (unless (zerop res)
             (message "cmake executable exited with error=%d" res)))
         (setq rlt (buffer-string)))
       (setq rlt (company-cmake--replace-tags rlt))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]