This commit is contained in:
Alex Yatskov 2016-09-11 12:48:53 -07:00
parent 8eb43c93d9
commit 94dccfd875

View File

@ -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) {