]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-crypto.el
emacs: Use 'and' instead of 'when' when the return value matters
[notmuch] / emacs / notmuch-crypto.el
index 420b008f8f6e376ba6fa39904c573c2ca32a96a7..e6bf8339e8a19fff161a70d8eaa437e678f5b03d 100644 (file)
@@ -253,7 +253,7 @@ corresponding key when the status button is pressed."
               "Decryption error")
              (t
               (concat "Unknown encryption status"
-                      (if status (concat ": " status))))))
+                      (and status (concat ": " status))))))
           " ]")
    :type 'notmuch-crypto-status-button-type
    'face 'notmuch-crypto-decryption