Skip to content

Commit 3a14c8a

Browse files
committed
chore: remove duplicate todo comment
1 parent c78ac5f commit 3a14c8a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

apps/oxlint/src-js/plugins/tokens.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,9 +353,6 @@ export function getTokenBefore(
353353
let nodeTokens: Token[] | null = null;
354354
if (includeComments) {
355355
if (tokensWithComments === null) {
356-
// TODO: `tokens` and `comments` are already sorted, so there's a more efficient algorithm to merge them.
357-
// That'd certainly be faster in Rust, but maybe here it's faster to leave it to JS engine to sort them?
358-
// TODO: Once we have our own tokens which have `start` and `end` properties, we can use them instead of `range`.
359356
tokensWithComments = [...tokens, ...comments].sort((a, b) => a.range[0] - b.range[0]);
360357
}
361358
nodeTokens = tokensWithComments;

0 commit comments

Comments
 (0)