summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-01-19 00:33:45 +0200
committerThanos Apollo <[email protected]>2024-01-19 00:33:45 +0200
commit1b16f3743946fa18127872a70ed31a04329bd135 (patch)
treed9db3df1bbff8d2c3cf1625ba1fe0aa6081c88f7
parentc8257934d341605a52848744b7dc15774b40d4b5 (diff)
gnosis-review-is-due-p: Redo without if statement
-rw-r--r--gnosis.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/gnosis.el b/gnosis.el
index 2a21252..26e8cdd 100644
--- a/gnosis.el
+++ b/gnosis.el
@@ -812,10 +812,8 @@ Returns a list of unique tags."
"Check if note with value of NOTE-ID for id is due for review.
Check if it's suspended, and if it's due today."
- (if (and (not (gnosis-suspended-p note-id))
- (gnosis-review-is-due-today-p note-id))
- t
- nil))
+ (and (not (gnosis-suspended-p note-id))
+ (gnosis-review-is-due-today-p note-id)))
(defun gnosis-review-is-due-today-p (id)
"Return t if note with ID is due today.