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-hello.el | |
| parent | 09f6533c3781b61ea634790d4bad38aadf89115c (diff) | |
emacs: Use 'when' instead of 'if' when there is no ELSE part
Diffstat (limited to 'emacs/notmuch-hello.el')
| -rw-r--r-- | emacs/notmuch-hello.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el index 1c0b1848..c17b46bc 100644 --- a/emacs/notmuch-hello.el +++ b/emacs/notmuch-hello.el @@ -589,8 +589,8 @@ with `notmuch-hello-query-counts'." (mapc (lambda (elem) ;; (not elem) indicates an empty slot in the matrix. (when elem - (if (> column-indent 0) - (widget-insert (make-string column-indent ? ))) + (when (> column-indent 0) + (widget-insert (make-string column-indent ? ))) (let* ((name (plist-get elem :name)) (query (plist-get elem :query)) (oldest-first (cl-case (plist-get elem :sort-order) @@ -890,8 +890,8 @@ Supports the following entries in OPTIONS as a plist: the same values as :filter. If :filter and :filter-count are specified, this will be used instead of :filter, not in conjunction with it." (widget-insert title ": ") - (if (and notmuch-hello-first-run (plist-get options :initially-hidden)) - (add-to-list 'notmuch-hello-hidden-sections title)) + (when (and notmuch-hello-first-run (plist-get options :initially-hidden)) + (add-to-list 'notmuch-hello-hidden-sections title)) (let ((is-hidden (member title notmuch-hello-hidden-sections)) (start (point))) (if is-hidden |
