diff options
Diffstat (limited to 'ext')
-rw-r--r-- | ext/bg/js/translator.js | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js index e18d5a3b..b8cad6de 100644 --- a/ext/bg/js/translator.js +++ b/ext/bg/js/translator.js @@ -133,10 +133,7 @@ class Translator { } } - return Promise.all(promises).then((sets) => { - const definitions = sets.reduce((a, b) => a.concat(b)); - return this.processKanji(definitions); - }); + return Promise.all(promises).then(sets => this.processKanji(sets.reduce((a, b) => a.concat(b)))); } processTerm(groups, source, tags, rules, root) { |