aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/js/translator.js
diff options
context:
space:
mode:
authorsiikamiika <siikamiika@users.noreply.github.com>2017-10-24 23:10:47 +0300
committersiikamiika <siikamiika@users.noreply.github.com>2017-10-24 23:10:47 +0300
commit73d542547b181b25ece25bb342ea5c68c6b6a267 (patch)
tree8e9d7d9fa2fc9c2068cfea7aa7254f24bc5713e3 /ext/bg/js/translator.js
parentc9b1dd56dc2f878edcff7448e9366bf1dbc59829 (diff)
translator.js: coding style
Diffstat (limited to 'ext/bg/js/translator.js')
-rw-r--r--ext/bg/js/translator.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/translator.js b/ext/bg/js/translator.js
index 238af94d..005dd5de 100644
--- a/ext/bg/js/translator.js
+++ b/ext/bg/js/translator.js
@@ -66,7 +66,7 @@ class Translator {
const definitionsMerged = [];
const mergedByTermIndices = new Set();
for (const sequence in definitionsBySequence) {
- if (!(sequence >= 0)) {
+ if (sequence < 0) {
continue;
}
@@ -83,7 +83,7 @@ class Translator {
const definitionsByGloss = dictTermsMergeByGloss(result, rawDefinitionsBySequence);
const secondarySearchResults = [];
- if (secondarySearchTitles.length) {
+ if (secondarySearchTitles.length > 0) {
for (const expression of result.expressions.keys()) {
if (expression === text) {
continue;