]> git.cworth.org Git - notmuch/blobdiff - emacs/notmuch-tag.el
emacs: Use 'unless' instead of 'when' and 'not'
[notmuch] / emacs / notmuch-tag.el
index 2fcf5a9e9fa65073a9bf0f71b839ce8af3dfc2c1..1067f18513018802607276ae92edb4b2654adc0b 100644 (file)
@@ -382,8 +382,8 @@ the messages that were tagged."
   "Return a list of tags for messages matching SEARCH-TERMS.
 
 Returns all tags if no search terms are given."
-  (if (null search-terms)
-      (setq search-terms (list "*")))
+  (unless search-terms
+    (setq search-terms (list "*")))
   (split-string
    (with-output-to-string
      (with-current-buffer standard-output