Fix redundant secondary term lookups (#1942)

This commit is contained in:
toasted-nutbread 2021-09-09 23:29:41 -04:00 committed by GitHub
parent 7883d39496
commit dfddf3792e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -433,11 +433,11 @@ class Translator {
groups: [] groups: []
}; };
targetMap.set(key, target); targetMap.set(key, target);
}
target.groups.push(group);
termList.push({term, reading}); termList.push({term, reading});
targetList.push(target); targetList.push(target);
} }
target.groups.push(group);
}
} }
// Group unsequenced dictionary entries with sequenced entries that have a matching [term, reading]. // Group unsequenced dictionary entries with sequenced entries that have a matching [term, reading].