remove redundant cast

Co-authored-by: Alex Ford <alexrford@users.noreply.github.com>
This commit is contained in:
Erik Krogh Kristensen
2024-04-10 20:02:49 +02:00
committed by GitHub
parent 642a134035
commit 844e78dce5

View File

@@ -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)
}