From e20c27ce75d277348a4e1e641355f2a771f012f7 Mon Sep 17 00:00:00 2001 From: Tor Andersson Date: Fri, 20 Sep 2024 18:07:49 +0200 Subject: Handle non-existing as well as zero-length summary lists. --- rules.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules.js b/rules.js index 771cbe1..0521b80 100644 --- a/rules.js +++ b/rules.js @@ -315,7 +315,7 @@ function print_plain_summary(verb, list) { } function print_summary(summary, verb) { - if (summary.length > 0) { + if (summary && summary.length > 0) { log(verb) map_for_each(summary, (s, list) => { log(">%" + s + "\n" + make_summary(list)) -- cgit v1.2.3