From 73d542547b181b25ece25bb342ea5c68c6b6a267 Mon Sep 17 00:00:00 2001 From: siikamiika Date: Tue, 24 Oct 2017 23:10:47 +0300 Subject: translator.js: coding style --- ext/bg/js/translator.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ext/bg') 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; -- cgit v1.2.3