Skip to content

Commit 78b4d7c

Browse files
committed
Ruby: remove redundant cast
1 parent 0cef887 commit 78b4d7c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ruby/ql/lib/codeql/ruby/dataflow/internal/DataFlowPrivate.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ module LocalFlow {
133133
or
134134
nodeFrom.asExpr() = branch.(CfgNodes::ExprNodes::WhenClauseCfgNode).getBody()
135135
or
136-
nodeFrom.asExpr() = branch.(CfgNodes::ExprCfgNode)
136+
nodeFrom.asExpr() = branch
137137
)
138138
or
139139
exists(CfgNodes::ExprCfgNode exprTo, ReturningStatementNode n |

0 commit comments

Comments
 (0)