From f512525cc7fe4e627cf58e70f97976fcfe532e59 Mon Sep 17 00:00:00 2001 From: John Benediktsson Date: Thu, 20 Jan 2022 09:34:05 -0800 Subject: [PATCH] webapps.help: make sure to set ``f`` when empty --- extra/webapps/help/help.factor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extra/webapps/help/help.factor b/extra/webapps/help/help.factor index c5e8d04d5d..c0ab8abdcd 100644 --- a/extra/webapps/help/help.factor +++ b/extra/webapps/help/help.factor @@ -12,8 +12,8 @@ TUPLE: help-webapp < dispatcher ; : links ( apropos -- seq ) [ swap ] { } assoc>map ; -: ?links ( has-links? apropos -- has-links? seq ) - links [ empty? not or ] keep ; +: ?links ( has-links? apropos -- has-links? seq/f ) + links [ f ] [ nip t swap ] if-empty ; :: ( help-dir -- action ) -- 2.34.1