Skip to content

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)