Skip to content

Commit

Permalink
edge case
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Apr 15, 2024
1 parent 89261db commit 3003f95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions ext/js/language/translator.js
Original file line number Diff line number Diff line change
Expand Up @@ -2080,6 +2080,7 @@ export class Translator {
* @returns {number}
*/
_getShortestInflectionChainLength(inflectionRuleChainCandidates) {
if (inflectionRuleChainCandidates.length === 0) { return 0; }
let length = Number.MAX_SAFE_INTEGER;
for (const {inflectionRules} of inflectionRuleChainCandidates) {
length = Math.min(length, inflectionRules.length);
Expand Down

0 comments on commit 3003f95

Please sign in to comment.