Skip to content

Commit 9a7f9aa

Browse files
committed
1 parent 2affd2b commit 9a7f9aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascript/ql/src/semmle/javascript/Functions.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,7 @@ class Function extends @function, Parameterized, TypeParameterized, StmtContaine
184184
*/
185185

186186
ConcreteControlFlowNode getAnUndefinedReturn() {
187-
not (this instanceof ArrowFunctionExpr and this.getBody() instanceof Expr) and
187+
not this.getBody() instanceof Expr and
188188
result.getContainer() = this and
189189
result.isAFinalNode() and
190190
not (result instanceof ReturnStmt and exists(result.(ReturnStmt).getExpr())) and

0 commit comments

Comments
 (0)