summaryrefslogtreecommitdiff
path: root/gnosis-algorithm.el
diff options
context:
space:
mode:
authorThanos Apollo <[email protected]>2024-05-27 06:02:48 +0300
committerThanos Apollo <[email protected]>2024-05-27 06:02:48 +0300
commit2b5d60b1beb1b15c142213b1ba20a9c0dc871099 (patch)
tree76d9426a4b93ffdde57aacf0d6ccf5569c047c87 /gnosis-algorithm.el
parent747922756245fa05d6a6506711c46952a86e533d (diff)
[fix] gnosis-algorithm: Use notes total-ef
Diffstat (limited to 'gnosis-algorithm.el')
-rw-r--r--gnosis-algorithm.el5
1 files changed, 1 insertions, 4 deletions
diff --git a/gnosis-algorithm.el b/gnosis-algorithm.el
index 075e669..33e3232 100644
--- a/gnosis-algorithm.el
+++ b/gnosis-algorithm.el
@@ -182,10 +182,7 @@ reviews. Will be used to determine the next interval for the first 2
successful reviews."
(cl-assert (< gnosis-algorithm-ff 1) "Value of `gnosis-algorithm-ff' must be lower than 1")
;; This should only occur in testing env or when the user has made breaking changes.
- (cl-assert (> (nth 2 ef) 1) "Total ef value must be above 1")
- (let* ((ef (nth 2 gnosis-algorithm-ef))
- ;; If last-interval is 0, use 1 instead.
- (last-interval (if (<= last-interval 0) 1 last-interval))
+ (let* ((last-interval (if (<= last-interval 0) 1 last-interval)) ;; If last-interval is 0, use 1 instead.
(interval (cond ((and (= successful-reviews 0) success)
(car initial-interval))
((and (= successful-reviews 1) success)