« get me outta code hell

data-checks: processContent: continue statements where appropriate - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/data
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-02-17 17:19:20 -0400
committer(quasar) nebula <qznebula@protonmail.com>2024-02-17 17:19:20 -0400
commite2dbe28c6bf606422bf53973cfa5fb08bca9d873 (patch)
tree88034c353f7305208be00f1fd0f95f54afc30760 /src/data
parent18d696976a45143f1995019ea00eb538c399d62e (diff)
data-checks: processContent: continue statements where appropriate
Diffstat (limited to 'src/data')
-rw-r--r--src/data/checks.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/data/checks.js b/src/data/checks.js
index 2c6ea99..79a8d4c 100644
--- a/src/data/checks.js
+++ b/src/data/checks.js
@@ -537,6 +537,9 @@ export function reportContentTextErrors(wikiData, {
             message:
               `Unknown tag key ${colors.red(`"${replacerKey}"`)}`,
           };
+
+          // No spec, no further errors to report.
+          continue;
         }
 
         const replacerValue = node.data.replacerValue[0].data;
@@ -566,6 +569,9 @@ export function reportContentTextErrors(wikiData, {
               index, length,
               message: error.message,
             };
+
+            // It's only possible to have one error per node at the moment.
+            continue;
           }
         }
       }