summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-04-02 16:55:50 +0300
committerThanos Apollo <[email protected]>2024-04-02 16:55:50 +0300
commitcee8aa43f8e1bc4dacec63630051bbc1d4c1d246 (patch)
treec5202965bb8b82eea74b9a1eb8c2f06185277f86
parenta76e0d19da9ea6c4620a1f963c7d8ce5e81376ef (diff)
gnosis-select-by-tag: Use cl-assert
-rw-r--r--gnosis.el3
1 files changed, 1 insertions, 2 deletions
diff --git a/gnosis.el b/gnosis.el
index 48cc707..d29a16c 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -888,8 +888,7 @@ Optionally, add cusotm PROMPT."
(defun gnosis-select-by-tag (input-tags)
"Return note ID's for every note with INPUT-TAGS."
- (unless (listp input-tags)
- (error "`input-tags' need to be a list"))
+ (cl-assert (listp input-tags) t "Input tags must be a list")
(cl-loop for (id tags) in (gnosis-select '[id tags] 'notes)
when (and (cl-every (lambda (tag) (member tag tags)) input-tags)
(not (gnosis-suspended-p id)))