Skip to content

Commit

Permalink
Merge pull request Expensify#37093 from callstack-internal/Audit-Impl…
Browse files Browse the repository at this point in the history
…ementation-replaceAndExtractEmojis-double-add-fix

[Audit][implementation] - replaceAndExtractEmojis double add fix
  • Loading branch information
roryabraham authored Feb 28, 2024
2 parents 8f4a3b8 + ddee803 commit 98461f9
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libs/Trie/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ class Trie<TMetaData extends MetaData> {
}
if (!newNode.children[newWord[0]]) {
newNode.children[newWord[0]] = new TrieNode();
this.add(newWord.substring(1), metaData, newNode.children[newWord[0]], true);
}
this.add(newWord.substring(1), metaData, newNode.children[newWord[0]], true);
}
Expand Down

0 comments on commit 98461f9

Please sign in to comment.