From 638ff02f9f81b0c264a626533e28d1b1b941ec58 Mon Sep 17 00:00:00 2001 From: kuuuube Date: Mon, 16 Dec 2024 22:51:42 -0500 Subject: [PATCH] Make for loop sane --- ext/js/pages/settings/dictionary-controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/js/pages/settings/dictionary-controller.js b/ext/js/pages/settings/dictionary-controller.js index 2d5a942f7..662de87a5 100644 --- a/ext/js/pages/settings/dictionary-controller.js +++ b/ext/js/pages/settings/dictionary-controller.js @@ -835,7 +835,7 @@ export class DictionaryController { this._dictionaryEntries.map((dictionaryEntry) => dictionaryEntry.cleanup()); const dictionaryOptionsArray = options.dictionaries; - for (let i = 0, ii = dictionaryOptionsArray.length; i < ii; ++i) { + for (let i = 0; i < dictionaryOptionsArray.length; i++) { const {name} = dictionaryOptionsArray[i]; /** @type {import('dictionary-importer').Summary | undefined} */ const dictionaryInfo = dictionaries.find((dictionary) => dictionary.title === name);