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

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

[elpa] externals/denote 5c95a56bf4 6/7: Ignore return value of denote--b


From: ELPA Syncer
Subject: [elpa] externals/denote 5c95a56bf4 6/7: Ignore return value of denote--barf-duplicate-id
Date: Tue, 2 Aug 2022 23:57:30 -0400 (EDT)

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

    Ignore return value of denote--barf-duplicate-id
---
 denote.el | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/denote.el b/denote.el
index 57acd21cf6..7b4a2d17e7 100644
--- a/denote.el
+++ b/denote.el
@@ -887,10 +887,9 @@ where the former does not read dates without a time 
component."
                  (concat "\\`" identifier))))))
 
 (defun denote--barf-duplicate-id (identifier)
-  "Throw a user-error if IDENTIFIER already exists else return t."
-  (if (denote--id-exists-p identifier)
-      (user-error "`%s' already exists; aborting new note creation" identifier)
-    t))
+  "Throw a user-error if IDENTIFIER already exists."
+  (when (denote--id-exists-p identifier)
+    (user-error "`%s' already exists; aborting new note creation" identifier)))
 
 (defun denote--subdirs ()
   "Return list of subdirectories in variable `denote-directory'."



reply via email to

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