From 9c242a4bdeb779b7ffd9244d3b1f244fb3df2ecf Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Thu, 6 Jun 2024 18:15:29 -0300 Subject: checks: reportDirectoryErrors: fix error in deduplicate logic --- src/data/checks.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/data/checks.js b/src/data/checks.js index f3741a19..ad621bab 100644 --- a/src/data/checks.js +++ b/src/data/checks.js @@ -95,6 +95,7 @@ export function reportDirectoryErrors(wikiData, { const seenDuplicateSets = new Map(); const deduplicateDuplicateSets = []; + iterateSets: for (const set of duplicateSets) { if (seenDuplicateSets.has(set.directory)) { const placeLists = seenDuplicateSets.get(set.directory); @@ -106,7 +107,7 @@ export function reportDirectoryErrors(wikiData, { // Two artists named Foodog aren't going to match two tracks named // Foodog. if (compareArrays(places, set.places, {checkOrder: false})) { - continue; + continue iterateSets; } } -- cgit 1.3.0-6-gf8a5