translator.js: coding style

This commit is contained in:
siikamiika 2017-10-24 23:10:47 +03:00
parent c9b1dd56dc
commit 73d542547b

View File

@ -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;