Skip to content

Commit 8598192

Browse files
committed
remove unneeded as const
1 parent 1daa7a2 commit 8598192

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/parser/lexer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ const multipleA = specificWord("a")
8080
const repeatingLetter = match(/[a-zA-Z]/, "latin letter")
8181
.then(memoize((letter) =>
8282
count(all(matchString(letter)))
83-
.map((count) => [letter, count + 1] as const)
83+
.map((count) => [letter, count + 1])
8484
));
8585
const longWord = allAtLeastOnce(repeatingLetter)
8686
.skip(spaces)

src/parser/parser_lib.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ export function withSource<const T>(
316316
value: [
317317
value,
318318
currentSource.slice(position, position + length),
319-
] as const,
319+
],
320320
length,
321321
}))
322322
);

0 commit comments

Comments
 (0)