Skip to content

Commit

Permalink
Make for loop sane
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Dec 17, 2024
1 parent 32e5d70 commit 638ff02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/pages/settings/dictionary-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 638ff02

Please sign in to comment.