summaryrefslogtreecommitdiff
path: root/gnosis.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-19 00:32:00 +0200
committerThanos Apollo <[email protected]>2024-01-19 00:32:00 +0200
commitbd048cbd365fe24e4c67f6247b63b49e03a1661a (patch)
treec1888fceb85f0edb3d174cabed2a11d24b8048c8 /gnosis.el
parentfed9709dde69e2a5c7d5b9f8f9efe7b7eb596d6c (diff)
gnsois-suspended-p: Redo without if statement
Diffstat (limited to 'gnosis.el')
-rw-r--r--gnosis.el4
1 files changed, 1 insertions, 3 deletions
diff --git a/gnosis.el b/gnosis.el
index efc0321..b1230dd 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -756,9 +756,7 @@ Optionally, add cusotm PROMPT."
(defun gnosis-suspended-p (id)
"Return t if note with ID is suspended."
- (if (= (gnosis-get 'suspend 'review-log `(= id ,id)) 1)
- t
- nil))
+ (= (gnosis-get 'suspend 'review-log `(= id ,id)) 1))
(defun gnosis-get-deck-due-notes (&optional deck-id)
"Return due notes for deck, with value of DECK-ID.