summaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authorAlex Yatskov <alex@foosoft.net>2016-09-10 19:44:54 -0700
committerAlex Yatskov <alex@foosoft.net>2016-09-10 19:44:54 -0700
commit058739988302513c8496e569cf3a4fd1eb5920b4 (patch)
treea8b1a019e818b26093d333a3f1f5c8d010ade4a5 /ext/bg/js/translator.js
parent47ef617eb4d951233d43c8da6e13a8bd2e40a863 (diff)
WIP
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index dcc2e5ac..ccf1876f 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -63,7 +63,7 @@ class Translator {
this.deinflector.deinflect(text.slice(0, i), term => {
return this.dictionary.findTerm(term).then(definitions => definitions.map(def => def.tags));
}).then(inflects => {
- for (const inflect of inflects || []) {
+ for (const inflect of inflects) {
this.processTerm(groups, df.source, df.tags, df.rules, df.root);
}
})