diff options
author | Tor Andersson <tor@ccxvii.net> | 2024-09-20 18:07:49 +0200 |
---|---|---|
committer | Tor Andersson <tor@ccxvii.net> | 2024-09-20 18:07:49 +0200 |
commit | e20c27ce75d277348a4e1e641355f2a771f012f7 (patch) | |
tree | 784743ae1bad7fe24ca1c37b8f31255947703f27 | |
parent | f1c13106fb4ae4c1d450acde2240db18f9557d78 (diff) | |
download | wilderness-war-e20c27ce75d277348a4e1e641355f2a771f012f7.tar.gz |
Handle non-existing as well as zero-length summary lists.
-rw-r--r-- | rules.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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)) |