]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-parser.el
emacs: Use 'unless' instead of 'when' and 'not'
[notmuch] / emacs / notmuch-parser.el
index 06e7487bd3270bcd3e424927abd62cbc6acf6f8f..fbcfc2efb4e6ca624a17198c4b84fc37669e5ec5 100644 (file)
@@ -78,7 +78,7 @@ returns the value."
         ;; parse, extend the partial parse to figure out when we
         ;; have a complete list.
         (catch 'return
-          (when (null (notmuch-sexp--partial-state sp))
+          (unless (notmuch-sexp--partial-state sp)
             (let ((start (point)))
               (condition-case nil
                   (throw 'return (read (current-buffer)))