From e2dbe28c6bf606422bf53973cfa5fb08bca9d873 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 17 Feb 2024 17:19:20 -0400 Subject: data-checks: processContent: continue statements where appropriate --- src/data/checks.js | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src') diff --git a/src/data/checks.js b/src/data/checks.js index 2c6ea99a..79a8d4c9 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; } } } -- cgit 1.3.0-6-gf8a5