Skip to content

Commit

Permalink
break
Browse files Browse the repository at this point in the history
  • Loading branch information
callionica authored Aug 5, 2024
1 parent 540a6e2 commit e7322a6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions colors/try-hard.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ export function getNodes(root, word) {
/** @type LetterNode */
const next = current[key];
if (next === undefined) {
return result;
break;
}
result.push(next);
current = next;
Expand Down Expand Up @@ -97,7 +97,7 @@ export function getNodesWithWildcards(root, word) {

// If there aren't any further nodes, just return the result we have
if (roots.length === 0) {
return result.length === 0 ? [] : [result];
break;
}

// Treat each node as a root then combine the results with the results we had already obtained
Expand Down

0 comments on commit e7322a6

Please sign in to comment.