Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit ed00470

Browse files
authored
fix: remove unnecessary conditional branch (#2957)
1 parent b47d479 commit ed00470

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

‎lib/utils/ts-utils/ts-ast.js‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -400,9 +400,6 @@ function inferRuntimeType(context, node, checked = new Set()) {
400400
return ['Number']
401401
}
402402
}
403-
if (node.literal.value instanceof RegExp) {
404-
return ['RegExp']
405-
}
406403
}
407404
return inferRuntimeTypeFromTypeNode(
408405
context,

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /