Skip to content

Commit 8c8f141

Browse files
authored
Merge pull request #11150 from hmac/try-fixup
Ruby: Cosmetic change
2 parents d392cda + 03aa8df commit 8c8f141

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/frameworks/ActiveSupport.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,13 +94,13 @@ module ActiveSupport {
9494
* `Object#try!` behaves similarly but raises `NoMethodError` if the
9595
* receiver is not `nil` and does not respond to the method.
9696
*/
97-
class TryCallCodeExecution extends CodeExecution::Range, DataFlow::CallNode {
97+
class TryCallCodeExecution extends CodeExecution::Range instanceof DataFlow::CallNode {
9898
TryCallCodeExecution() {
9999
this.asExpr().getExpr() instanceof UnknownMethodCall and
100100
this.getMethodName() = ["try", "try!"]
101101
}
102102

103-
override DataFlow::Node getCode() { result = this.getArgument(0) }
103+
override DataFlow::Node getCode() { result = super.getArgument(0) }
104104

105105
override predicate runsArbitraryCode() { none() }
106106
}

0 commit comments

Comments
 (0)