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 Oct 31, 2022
1 parent 44a8b67 commit 020a8fe
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 @@ -455,13 +455,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 020a8fe

Please sign in to comment.