]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-query.el
emacs: Use 'when' instead of 'if' when there is no ELSE part
[notmuch] / emacs / notmuch-query.el
index 1db9d7cadfb450a7f157b5fe44ed28fa7a3619e2..a8e5d11f92aef903ef31219f6b9c3af05ae6be72 100644 (file)
@@ -30,8 +30,8 @@ A thread is a forest or list of trees. A tree is a two element
 list where the first element is a message, and the second element
 is a possibly empty forest of replies."
   (let ((args '("show" "--format=sexp" "--format-version=4")))
 list where the first element is a message, and the second element
 is a possibly empty forest of replies."
   (let ((args '("show" "--format=sexp" "--format-version=4")))
-    (if notmuch-show-process-crypto
-       (setq args (append args '("--decrypt=true"))))
+    (when notmuch-show-process-crypto
+      (setq args (append args '("--decrypt=true"))))
     (setq args (append args search-terms))
     (apply #'notmuch-call-notmuch-sexp args)))
 
     (setq args (append args search-terms))
     (apply #'notmuch-call-notmuch-sexp args)))