translator.js: coding style
This commit is contained in:
parent
c9b1dd56dc
commit
73d542547b
@ -66,7 +66,7 @@ class Translator {
|
|||||||
const definitionsMerged = [];
|
const definitionsMerged = [];
|
||||||
const mergedByTermIndices = new Set();
|
const mergedByTermIndices = new Set();
|
||||||
for (const sequence in definitionsBySequence) {
|
for (const sequence in definitionsBySequence) {
|
||||||
if (!(sequence >= 0)) {
|
if (sequence < 0) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,7 +83,7 @@ class Translator {
|
|||||||
const definitionsByGloss = dictTermsMergeByGloss(result, rawDefinitionsBySequence);
|
const definitionsByGloss = dictTermsMergeByGloss(result, rawDefinitionsBySequence);
|
||||||
|
|
||||||
const secondarySearchResults = [];
|
const secondarySearchResults = [];
|
||||||
if (secondarySearchTitles.length) {
|
if (secondarySearchTitles.length > 0) {
|
||||||
for (const expression of result.expressions.keys()) {
|
for (const expression of result.expressions.keys()) {
|
||||||
if (expression === text) {
|
if (expression === text) {
|
||||||
continue;
|
continue;
|
||||||
|
Loading…
Reference in New Issue
Block a user