branch: elpa/helm
commit 8933f7bb06579fec2a22d1e61069552346b352a0
Author: Thierry Volpiatto <[email protected]>
Commit: Thierry Volpiatto <[email protected]>
Use zerop
---
helm-grep.el | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/helm-grep.el b/helm-grep.el
index 41841b6901c..e6a713223ab 100644
--- a/helm-grep.el
+++ b/helm-grep.el
@@ -1604,10 +1604,10 @@ Ripgrep (rg) types are also supported if this backend
is used."
(ripgrep (string= com "rg"))
(regex (if ripgrep "^\\(.*\\):" "^ *\\(--[a-z]*\\)"))
(prefix (if ripgrep "-t " "")))
- (when (equal (call-process com
- nil t nil
+ (when (zerop (call-process com nil t nil
(if ripgrep
- "--type-list" "--list-file-types")) 0)
+ "--type-list"
+ "--list-file-types")))
(goto-char (point-min))
(cl-loop while (re-search-forward regex nil t)
for type = (match-string 1)