Skip to content

Commit

Permalink
Replace cleanup loop with map
Browse files Browse the repository at this point in the history
  • Loading branch information
Kuuuube committed Dec 17, 2024
1 parent de6379f commit 32e5d70
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions ext/js/pages/settings/dictionary-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -832,9 +832,7 @@ export class DictionaryController {
const dictionaries = this._dictionaries;
if (dictionaries === null) { return; }

for (const entry of this._dictionaryEntries) {
entry.cleanup();
}
this._dictionaryEntries.map((dictionaryEntry) => dictionaryEntry.cleanup());

const dictionaryOptionsArray = options.dictionaries;
for (let i = 0, ii = dictionaryOptionsArray.length; i < ii; ++i) {
Expand Down

0 comments on commit 32e5d70

Please sign in to comment.