aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-09-09 23:29:41 -0400
committerGitHub <noreply@github.com>2021-09-09 23:29:41 -0400
commitdfddf3792ea47ac91fd8bded58a88c87f4febfe2 (patch)
tree2c3678dbd5e6667dcc3ea33fadbd833c799c2abf /ext
parent7883d3949619fa7f1905c0d433fde82d7b84557c (diff)
Fix redundant secondary term lookups (#1942)
Diffstat (limited to 'ext')
-rw-r--r--ext/js/language/translator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/js/language/translator.js b/ext/js/language/translator.js
index 2df39299..641c9d57 100644
--- a/ext/js/language/translator.js
+++ b/ext/js/language/translator.js
@@ -433,10 +433,10 @@ class Translator {
groups: []
};
targetMap.set(key, target);
+ termList.push({term, reading});
+ targetList.push(target);
}
target.groups.push(group);
- termList.push({term, reading});
- targetList.push(target);
}
}