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

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

[elpa] externals/denote 119624e038 03/11: Small refactor of denote-direc


From: ELPA Syncer
Subject: [elpa] externals/denote 119624e038 03/11: Small refactor of denote-directory-files
Date: Mon, 16 Dec 2024 03:58:29 -0500 (EST)

branch: externals/denote
commit 119624e03856160e5c55def9364df670d07bb286
Author: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>
Commit: Jean-Philippe Gagné Guay <jeanphilippe150@gmail.com>

    Small refactor of denote-directory-files
---
 denote.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/denote.el b/denote.el
index 595223df29..85867ea2d3 100644
--- a/denote.el
+++ b/denote.el
@@ -1320,12 +1320,12 @@ OMIT-CURRENT have been applied."
                    files)))
     (when text-only
       (setq files (seq-filter #'denote-filename-is-note-p files)))
-    (if exclude-regexp
-        (seq-remove
-         (lambda (file)
-           (string-match-p exclude-regexp file))
-         files)
-      files)))
+    (when exclude-regexp
+      (setq files (seq-remove
+                   (lambda (file)
+                     (string-match-p exclude-regexp file))
+                   files)))
+    files))
 
 (defun denote-directory-subdirectories ()
   "Return list of subdirectories in variable `denote-directory'.



reply via email to

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