Skip to content

Commit 739905d

Browse files
authored
Update prefer-t-throws.js
1 parent 2d81996 commit 739905d

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

rules/prefer-t-throws.js

-6
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,6 @@ function hasAwaitExpression(nodes) {
2626
return true;
2727
}
2828

29-
// Make the rule passes if a return statement is found.
30-
if (node.type === 'ReturnStatement') {
31-
// eslint-disable-next-line no-throw-literal
32-
throw undefined;
33-
}
34-
3529
if (node.expressions && hasAwaitExpression(node.expressions)) {
3630
return true;
3731
}

0 commit comments

Comments
 (0)