We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
DataFlow::CallNode#getBlock
1 parent f3dcccb commit 3262a14Copy full SHA for 3262a14
ruby/ql/lib/codeql/ruby/frameworks/Rails.qll
@@ -68,7 +68,7 @@ private class ConfigSourceNode extends DataFlow::LocalSourceNode {
68
configCall = this.asExpr().getExpr()
69
|
70
configureCallNode = getAConfigureCallNode() and
71
- block = configureCallNode.asExpr().getExpr().(MethodCall).getBlock() and
+ block = configureCallNode.getBlock().asExpr().getExpr() and
72
configCall.getParent+() = block and
73
configCall.getMethodName() = "config"
74
)
0 commit comments