diff options
| author | Jonas Bernoulli <jonas@bernoul.li> | 2020-08-08 13:49:43 +0200 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2020-08-09 20:52:34 -0300 |
| commit | e1a700067a22214f54064c281219fbbbef87de06 (patch) | |
| tree | fccae9d95e5e63a8a7b346084d3211b55bf36ef8 /emacs/notmuch-compat.el | |
| parent | 09f6533c3781b61ea634790d4bad38aadf89115c (diff) | |
emacs: Use 'when' instead of 'if' when there is no ELSE part
Diffstat (limited to 'emacs/notmuch-compat.el')
| -rw-r--r-- | emacs/notmuch-compat.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/emacs/notmuch-compat.el b/emacs/notmuch-compat.el index 388ef70f..3340918f 100644 --- a/emacs/notmuch-compat.el +++ b/emacs/notmuch-compat.el @@ -68,9 +68,9 @@ inlined." ;; This is an inlined copy of help-form-show as that ;; was introduced in emacs 24 too. (let ((msg (eval help-form))) - (if (stringp msg) - (with-output-to-temp-buffer " *Char Help*" - (princ msg)))))) + (when (stringp msg) + (with-output-to-temp-buffer " *Char Help*" + (princ msg)))))) ((memq char chars) (setq done t)) ((and executing-kbd-macro (= char -1)) |
