aboutsummaryrefslogtreecommitdiff
path: root/test-from-git
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-05 09:30:38 -0500
committerCraig Jennings <c@cjennings.net>2026-05-05 09:30:38 -0500
commit066cd82302f76f21b3409a00aabe0d8de1d9e34e (patch)
tree6f4a068cc3b147bfc54fbf053e746b3e09e221a3 /test-from-git
parentffca04d90e94c5d4e40139282811630028d586ce (diff)
downloadorg-drill-066cd82302f76f21b3409a00aabe0d8de1d9e34e.tar.gz
org-drill-066cd82302f76f21b3409a00aabe0d8de1d9e34e.zip
refactor: extract org-drill--quality-failed-p predicate
The check (<= quality org-drill-failure-quality) appeared in five places: SM2/SM5/Simple8 schedulers, smart-reschedule, and the main org-drill-entries loop body. Each call site does different things on failure (reset interval, push to again-entries, etc.) so only the predicate was duplicated. Extracted as org-drill--quality-failed-p with a docstring naming the threshold and the role. Five inlined comparisons collapse to five named predicate calls.
Diffstat (limited to 'test-from-git')
0 files changed, 0 insertions, 0 deletions