From 94dccfd875bf0ef1ec0d732b548b94a5811491f3 Mon Sep 17 00:00:00 2001 From: Alex Yatskov Date: Sun, 11 Sep 2016 12:48:53 -0700 Subject: [PATCH] WIP --- ext/bg/js/translator.js | 5 +---- 1 file changed, 1 insertion(+), 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) {