Skip to content

Commit

Permalink
Remove tslint comments
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed May 6, 2022
1 parent 86baef8 commit 446abfb
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ export function parse(str: string, options: ParseOptions = {}): Token[] {
const consumeText = (): string => {
let result = "";
let value: string | undefined;
// tslint:disable-next-line
while ((value = tryConsume("CHAR") || tryConsume("ESCAPED_CHAR"))) {
result += value;
}
Expand Down Expand Up @@ -399,7 +398,6 @@ export function regexpToFunction<P extends object = object>(
const params = Object.create(null);

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

const key = keys[i - 1];
Expand Down Expand Up @@ -586,8 +584,7 @@ export function tokensToRegexp(
const isEndDelimited =
typeof endToken === "string"
? delimiterRe.indexOf(endToken[endToken.length - 1]) > -1
: // tslint:disable-next-line
endToken === undefined;
: endToken === undefined;

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

0 comments on commit 446abfb

Please sign in to comment.