mirror of
https://github.com/github/codeql.git
synced 2026-04-25 16:55:19 +02:00
remove redundant check in returnsVoid
This commit is contained in:
@@ -15,7 +15,6 @@ import Expressions.ExprHasNoEffect
|
||||
import Statements.UselessConditional
|
||||
|
||||
predicate returnsVoid(Function f) {
|
||||
not f instanceof ArrowFunctionExpr and
|
||||
not f.isGenerator() and
|
||||
not f.isAsync() and
|
||||
not exists(f.getAReturnedExpr())
|
||||
|
||||
Reference in New Issue
Block a user