« get me outta code hell

checks: reportDirectoryErrors: fix error in deduplicate logic - 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-06-06 18:15:29 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-06-06 18:16:08 -0300
commit9c242a4bdeb779b7ffd9244d3b1f244fb3df2ecf (patch)
tree40d581faf03133555e7adaea675cf84c17c8d6cd /src/data
parent69e016ca53189d61feb7b0e7be3dca8b6df3e9e8 (diff)
checks: reportDirectoryErrors: fix error in deduplicate logic
Diffstat (limited to 'src/data')
-rw-r--r--src/data/checks.js3
1 files changed, 2 insertions, 1 deletions
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;
         }
       }