Skip to content

Commit 446abfb

Browse files
committed
Remove tslint comments
1 parent 86baef8 commit 446abfb

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/index.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,6 @@ export function parse(str: string, options: ParseOptions = {}): Token[] {
160160
const consumeText = (): string => {
161161
let result = "";
162162
let value: string | undefined;
163-
// tslint:disable-next-line
164163
while ((value = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR"))) {
165164
result += value;
166165
}
@@ -399,7 +398,6 @@ export function regexpToFunction<P extends object = object>(
399398
const params = Object.create(null);
400399

401400
for (let i = 1; i < m.length; i++) {
402-
// tslint:disable-next-line
403401
if (m[i] === undefined) continue;
404402

405403
const key = keys[i - 1];
@@ -586,8 +584,7 @@ export function tokensToRegexp(
586584
const isEndDelimited =
587585
typeof endToken === "string"
588586
? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1
589-
: // tslint:disable-next-line
590-
endToken === undefined;
587+
: endToken === undefined;
591588

592589
if (!strict) {
593590
route += `(?:${delimiterRe}(?=${endsWithRe}))?`;

0 commit comments

Comments
 (0)