aboutsummaryrefslogtreecommitdiff
path: root/emacs/notmuch-draft.el
diff options
context:
space:
mode:
authorJonas Bernoulli <jonas@bernoul.li>2020-08-08 13:49:41 +0200
committerDavid Bremner <david@tethera.net>2020-08-09 20:51:16 -0300
commitdfb1b8eb89e814f4bf6f6e62b700c72aa1b4659a (patch)
tree7922098afb904290e399f03f45fd7ad61de31304 /emacs/notmuch-draft.el
parent18d289c86309ae796e6f027c289b17ccdd38f220 (diff)
emacs: Use 'and' instead of 'when' when the return value matters
Also do so for some 'if' forms that lack an ELSE part. Even go as far as using 'and' and 'not' instead of 'unless'.
Diffstat (limited to 'emacs/notmuch-draft.el')
-rw-r--r--emacs/notmuch-draft.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/emacs/notmuch-draft.el b/emacs/notmuch-draft.el
index ea995379..759e6c9e 100644
--- a/emacs/notmuch-draft.el
+++ b/emacs/notmuch-draft.el
@@ -263,7 +263,7 @@ applied to newly inserted messages)."
;; If the resumed message was a draft then set the draft
;; message-id so that we can delete the current saved draft if the
;; message is resaved or sent.
- (setq notmuch-draft-id (when draft id)))))
+ (setq notmuch-draft-id (and draft id)))))
(add-hook 'message-send-hook 'notmuch-draft--mark-deleted)