branch: master commit ccc08c95f34280cfe932ed993264cde2e471ec4e Author: Dmitry Gutov <dgu...@yandex.ru> Commit: Dmitry Gutov <dgu...@yandex.ru>
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) (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))