Skip to content

Commit 0b8ea3c

Browse files
committed
remove redundant check in returnsVoid
1 parent 5ce356f commit 0b8ea3c

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

javascript/ql/src/Statements/UseOfReturnlessFunction.ql

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import Expressions.ExprHasNoEffect
1515
import Statements.UselessConditional
1616

1717
predicate returnsVoid(Function f) {
18-
not f instanceof ArrowFunctionExpr and
1918
not f.isGenerator() and
2019
not f.isAsync() and
2120
not exists(f.getAReturnedExpr())

0 commit comments

Comments
 (0)