]> code.delx.au - gnu-emacs-elpa/commitdiff
Eliminate one `setq'
authorDmitry Gutov <dgutov@yandex.ru>
Thu, 6 Nov 2014 07:38:32 +0000 (09:38 +0200)
committerDmitry Gutov <dgutov@yandex.ru>
Thu, 6 Nov 2014 07:38:32 +0000 (09:38 +0200)
company-cmake.el

index 7170f715ff10c9b119efb179c0f94da7770f8ebc..cb170308cce6db3bf959fc041aacd5e535374a02 100644 (file)
@@ -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)
       (with-temp-buffer
-        (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))