We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d81996 commit 739905dCopy full SHA for 739905d
rules/prefer-t-throws.js
@@ -26,12 +26,6 @@ function hasAwaitExpression(nodes) {
26
return true;
27
}
28
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
-
35
if (node.expressions && hasAwaitExpression(node.expressions)) {
36
37
0 commit comments