resolves PR change req mentioned in description

2affd2bef6 (r264557539)
This commit is contained in:
Rebecca Valentine
2019-03-12 11:23:46 -07:00
parent 2affd2bef6
commit 9a7f9aa808

View File

@@ -184,7 +184,7 @@ class Function extends @function, Parameterized, TypeParameterized, StmtContaine
*/
ConcreteControlFlowNode getAnUndefinedReturn() {
not (this instanceof ArrowFunctionExpr and this.getBody() instanceof Expr) and
not this.getBody() instanceof Expr and
result.getContainer() = this and
result.isAFinalNode() and
not (result instanceof ReturnStmt and exists(result.(ReturnStmt).getExpr())) and