From ccc08c95f34280cfe932ed993264cde2e471ec4e Mon Sep 17 00:00:00 2001 From: Dmitry Gutov Date: Thu, 6 Nov 2014 09:38:32 +0200 Subject: [PATCH] Eliminate one `setq' --- company-cmake.el | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/company-cmake.el b/company-cmake.el index 7170f715f..cb170308c 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)) -- 2.39.2