Skip to content

Commit 844e78d

Browse files
remove redundant cast
Co-authored-by: Alex Ford <[email protected]>
1 parent 642a134 commit 844e78d

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

ruby/ql/lib/codeql/ruby/ast/internal/Constant.qll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -562,7 +562,6 @@ private predicate isArrayExpr(Expr e, ArrayLiteralCfgNode arr) {
562562
forex(ExprCfgNode n | n = e.getAControlFlowNode() | isArrayConstant(n, arr))
563563
or
564564
// if `e` is an array, then `e.freeze` is also an array
565-
e instanceof MethodCall and
566565
e.(MethodCall).getMethodName() = "freeze" and
567566
isArrayExpr(e.(MethodCall).getReceiver(), arr)
568567
}

0 commit comments

Comments
 (0)