]> git.notmuchmail.org Git - notmuch/commitdiff
emacs: remove useless lexically bound variable
authorDavid Bremner <david@tethera.net>
Wed, 7 Jul 2021 01:51:08 +0000 (22:51 -0300)
committerDavid Bremner <david@tethera.net>
Mon, 19 Jul 2021 11:32:49 +0000 (08:32 -0300)
A let binding without a value is just an obfuscated way of saying
nil, especially if you are not going to mutate the variable.

emacs/notmuch-tree.el

index b288c05d039309bdf91d179fca2e245e5ef02d3e..eb7ea941f5c6a04c291ad426595c2193ee219862 100644 (file)
@@ -1001,10 +1001,9 @@ message together with all its descendents."
 
 (defun notmuch-tree-insert-forest-thread (forest-thread)
   "Insert a single complete thread."
-  (let (tree-status)
-    ;; Reset at the start of each main thread.
-    (setq notmuch-tree-previous-subject nil)
-    (notmuch-tree-insert-thread forest-thread 0 tree-status)))
+  ;; Reset at the start of each main thread.
+  (setq notmuch-tree-previous-subject nil)
+  (notmuch-tree-insert-thread forest-thread 0 nil))
 
 (defun notmuch-tree-insert-forest (forest)
   "Insert a forest of threads.