]> git.notmuchmail.org Git - notmuch/blobdiff - emacs/notmuch-tree.el
emacs: avoid unnecessary let-bindings
[notmuch] / emacs / notmuch-tree.el
index a06afc2d1c0e1ef6d0d42f8e73d333b30895ded5..51a43eddc6c67a9ba55030d8ed77291343b31788 100644 (file)
@@ -401,9 +401,8 @@ Some useful entries are:
     (notmuch-tree-set-message-properties props)))
 
 (defun notmuch-tree-get-prop (prop &optional props)
     (notmuch-tree-set-message-properties props)))
 
 (defun notmuch-tree-get-prop (prop &optional props)
-  (let ((props (or props
-                  (notmuch-tree-get-message-properties))))
-    (plist-get props prop)))
+  (plist-get (or props (notmuch-tree-get-message-properties))
+            prop))
 
 (defun notmuch-tree-set-tags (tags)
   "Set the tags of the current message."
 
 (defun notmuch-tree-set-tags (tags)
   "Set the tags of the current message."