diff --git a/libraries/prompter/prompter.lisp b/libraries/prompter/prompter.lisp index 77e4760c3aec..4fd82fbb0ab4 100644 --- a/libraries/prompter/prompter.lisp +++ b/libraries/prompter/prompter.lisp @@ -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