Ruby: Cosmetic change

This commit is contained in:
Harry Maclean
2022-11-08 09:43:49 +13:00
parent d392cdaab6
commit 03aa8df8e2

View File

@@ -94,13 +94,13 @@ module ActiveSupport {
* `Object#try!` behaves similarly but raises `NoMethodError` if the
* receiver is not `nil` and does not respond to the method.
*/
class TryCallCodeExecution extends CodeExecution::Range, DataFlow::CallNode {
class TryCallCodeExecution extends CodeExecution::Range instanceof DataFlow::CallNode {
TryCallCodeExecution() {
this.asExpr().getExpr() instanceof UnknownMethodCall and
this.getMethodName() = ["try", "try!"]
}
override DataFlow::Node getCode() { result = this.getArgument(0) }
override DataFlow::Node getCode() { result = super.getArgument(0) }
override predicate runsArbitraryCode() { none() }
}