« get me outta code hell

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:
Diffstat (limited to 'src/data')
-rw-r--r--src/data/yaml.js9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/data/yaml.js b/src/data/yaml.js
index c79ce53b..f2540b65 100644
--- a/src/data/yaml.js
+++ b/src/data/yaml.js
@@ -1594,11 +1594,10 @@ export function linkWikiDataArrays(wikiData, {
   ]);
 
   for (const [things, keys] of linkWikiDataSpec.entries()) {
-    if (things === undefined) return;
-    for (let i = 0; i < things.length; i++) {
-      const thing = things[i];
-      for (let j = 0; j < keys.length; j++) {
-        const key = keys[j];
+    if (things === undefined) continue;
+    for (const thing of things) {
+      if (thing === undefined) continue;
+      for (const key of keys) {
         if (!(key in wikiData)) continue;
         if (XXX_decacheWikiData) thing[key] = [];
         thing[key] = wikiData[key];