Skip to content

Commit

Permalink
libraries/prompter/prompter: Refactor all-ready-p.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Nov 1, 2022
1 parent 074dc1e commit 6cc7af8
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions libraries/prompter/prompter.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -454,13 +454,9 @@ This is unblocked when the PROMPTER is `destroy'ed."
(defun all-ready-p (prompter)
"Return non-nil when all PROMPTER sources are ready."
(sera:nlet check ((next-source (next-ready-p prompter)))
(cond
((eq t next-source)
t)
((null next-source)
nil)
(t
(check (next-ready-p prompter))))))
(if (typep next-source 'boolean)
next-source
(check (next-ready-p prompter)))))

(export-always 'make)
(define-function make
Expand Down

0 comments on commit 6cc7af8

Please sign in to comment.