translator.js: coding style
This commit is contained in:
parent
c9b1dd56dc
commit
73d542547b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user