We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d392cda + 03aa8df commit 8c8f141Copy full SHA for 8c8f141
1 file changed
ruby/ql/lib/codeql/ruby/frameworks/ActiveSupport.qll
@@ -94,13 +94,13 @@ module ActiveSupport {
94
* `Object#try!` behaves similarly but raises `NoMethodError` if the
95
* receiver is not `nil` and does not respond to the method.
96
*/
97
- class TryCallCodeExecution extends CodeExecution::Range, DataFlow::CallNode {
+ class TryCallCodeExecution extends CodeExecution::Range instanceof DataFlow::CallNode {
98
TryCallCodeExecution() {
99
this.asExpr().getExpr() instanceof UnknownMethodCall and
100
this.getMethodName() = ["try", "try!"]
101
}
102
103
- override DataFlow::Node getCode() { result = this.getArgument(0) }
+ override DataFlow::Node getCode() { result = super.getArgument(0) }
104
105
override predicate runsArbitraryCode() { none() }
106
0 commit comments