emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/denote 62e7adfbdb 269/355: Replace superfluous 'let*' w


From: ELPA Syncer
Subject: [elpa] externals/denote 62e7adfbdb 269/355: Replace superfluous 'let*' with 'let'
Date: Sun, 26 Jun 2022 23:58:31 -0400 (EDT)

branch: externals/denote
commit 62e7adfbdbed81c5cc068b3c9dc4734f96b5110f
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Replace superfluous 'let*' with 'let'
---
 denote.el | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/denote.el b/denote.el
index a5816179ff..4d19d9e098 100644
--- a/denote.el
+++ b/denote.el
@@ -305,12 +305,11 @@ FILE is relative to the variable `denote-directory'."
   "List note files, assuming flat directory.
 If optional ABSOLUTE, show full paths, else only show base file
 names that are relative to the variable `denote-directory'."
-  (let* ((dir (denote-directory))
-         (default-directory dir))
+  (let ((default-directory (denote-directory)))
     (seq-remove
      (lambda (f)
        (not (denote--only-note-p f)))
-     (directory-files dir absolute directory-files-no-dot-files-regexp t))))
+     (directory-files default-directory absolute 
directory-files-no-dot-files-regexp t))))
 
 (defun denote--directory-files-matching-regexp (regexp &optional 
no-check-current)
   "Return list of files matching REGEXP.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]