diff options
Diffstat (limited to 'ext/bg/js/deinflector.js')
-rw-r--r-- | ext/bg/js/deinflector.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ext/bg/js/deinflector.js b/ext/bg/js/deinflector.js index 256ae1a1..6e480068 100644 --- a/ext/bg/js/deinflector.js +++ b/ext/bg/js/deinflector.js @@ -32,8 +32,8 @@ class Deinflection { if (this.rules.length === 0) { this.definitions = definitions; } else { - for (let rule of this.rules) { - for (let definition of definitions) { + for (const rule of this.rules) { + for (const definition of definitions) { if (definition.rules.includes(rule)) { this.definitions.push(definition); } @@ -46,11 +46,11 @@ class Deinflection { }; const promises = []; - for (let reason in reasons) { - for (let variant of reasons[reason]) { + for (const reason in reasons) { + for (const variant of reasons[reason]) { let accept = this.rules.length === 0; if (!accept) { - for (let rule of this.rules) { + for (const rule of this.rules) { if (variant.rulesIn.includes(rule)) { accept = true; break; @@ -95,8 +95,8 @@ class Deinflection { } const results = []; - for (let child of this.children) { - for (let result of child.gather()) { + for (const child of this.children) { + for (const result of child.gather()) { if (this.reason.length > 0) { result.reasons.push(this.reason); } |