Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerrit0 committed Jun 9, 2024
1 parent 6933e62 commit 90d599c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/utils/html.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ for (const [name, data] of Object.entries(htmlEntities)) {
let current = htmlEntitiesTrie;
for (let i = 0; i < name.length; ++i) {
current.children ||= {};
current = current.children[name.charCodeAt(i)] ||= { children: {} };
current = current.children[name.charCodeAt(i)] ||= {};
}
current.data = data;
}
Expand Down

0 comments on commit 90d599c

Please sign in to comment.