summaryrefslogtreecommitdiff
path: root/ext/bg
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-09-11 12:48:53 -0700
committerAlex Yatskov <alex@foosoft.net>2016-09-11 12:48:53 -0700
commit94dccfd875bf0ef1ec0d732b548b94a5811491f3 (patch)
tree34a9fedcb76645cc60aca242a6731284e920612c /ext/bg
parent8eb43c93d920fb6d940cba2c1f46a9876d9087e9 (diff)
WIP
Diffstat (limited to 'ext/bg')
-rw-r--r--ext/bg/js/translator.js5
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) {