« get me outta code hell

upd8: don't log stats for present but empty thing data - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/upd8.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2025-02-22 13:15:33 -0400
committer(quasar) nebula <qznebula@protonmail.com>2025-02-22 13:16:47 -0400
commitf21883e743670dc727d3644b920319060ccb5bee (patch)
tree6d38e136a708627a71b8c01cb03265873b525766 /src/upd8.js
parentadb41fa1c75de3967b7016e63edd20f149d74d16 (diff)
upd8: don't log stats for present but empty thing data
Diffstat (limited to 'src/upd8.js')
-rwxr-xr-xsrc/upd8.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/upd8.js b/src/upd8.js
index 5589877c..93f09122 100755
--- a/src/upd8.js
+++ b/src/upd8.js
@@ -1480,6 +1480,10 @@ async function main() {
           ? prop
           : wikiData[prop]);
 
+      if (array && empty(array)) {
+        return;
+      }
+
       logInfo` - ${array?.length ?? colors.red('(Missing!)')} ${colors.normal(colors.dim(label))}`;
     }