mirror of
https://github.com/github/codeql.git
synced 2026-04-19 22:14:01 +02:00
remove redundant cast
Co-authored-by: Alex Ford <alexrford@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
642a134035
commit
844e78dce5
@@ -562,7 +562,6 @@ private predicate isArrayExpr(Expr e, ArrayLiteralCfgNode arr) {
|
||||
forex(ExprCfgNode n | n = e.getAControlFlowNode() | isArrayConstant(n, arr))
|
||||
or
|
||||
// if `e` is an array, then `e.freeze` is also an array
|
||||
e instanceof MethodCall and
|
||||
e.(MethodCall).getMethodName() = "freeze" and
|
||||
isArrayExpr(e.(MethodCall).getReceiver(), arr)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user