diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2020-08-08 13:49:41 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-08-09 20:51:16 -0300 |
| commit | dfb1b8eb89e814f4bf6f6e62b700c72aa1b4659a (patch) | |
| tree | 7922098afb904290e399f03f45fd7ad61de31304 /emacs/notmuch-draft.el | |
| parent | 18d289c86309ae796e6f027c289b17ccdd38f220 (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.el | 2 |
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) |
