File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ruby/ql/lib/codeql/ruby/frameworks Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -94,13 +94,13 @@ module ActiveSupport {
94
94
* `Object#try!` behaves similarly but raises `NoMethodError` if the
95
95
* receiver is not `nil` and does not respond to the method.
96
96
*/
97
- class TryCallCodeExecution extends CodeExecution:: Range , DataFlow:: CallNode {
97
+ class TryCallCodeExecution extends CodeExecution:: Range instanceof DataFlow:: CallNode {
98
98
TryCallCodeExecution ( ) {
99
99
this .asExpr ( ) .getExpr ( ) instanceof UnknownMethodCall and
100
100
this .getMethodName ( ) = [ "try" , "try!" ]
101
101
}
102
102
103
- override DataFlow:: Node getCode ( ) { result = this .getArgument ( 0 ) }
103
+ override DataFlow:: Node getCode ( ) { result = super .getArgument ( 0 ) }
104
104
105
105
override predicate runsArbitraryCode ( ) { none ( ) }
106
106
}
You can’t perform that action at this time.
0 commit comments