Skip to content

Commit 1808898

Browse files
committed
removed an unnecessary check
1 parent 34d7f08 commit 1808898

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

rules/prefer-t-regex.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,6 @@ const create = context => {
9191
const firstArg = node.arguments[0];
9292
const secondArg = node.arguments[1];
9393

94-
if (!firstArg || !secondArg) {
95-
return;
96-
}
97-
9894
const firstIsRx = isRegExp(firstArg);
9995
const secondIsRx = isRegExp(secondArg);
10096

0 commit comments

Comments
 (0)