mirror of
https://github.com/github/codeql.git
synced 2026-05-01 11:45:14 +02:00
resolves PR change req mentioned in description
2affd2bef6 (r264557539)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user