Skip to content

Commit a64f7cd

Browse files
committed
Ruby: simplify getSetterCallAttributeName
1 parent a51a540 commit a64f7cd

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

ruby/ql/lib/codeql/ruby/typetracking/TypeTrackerSpecific.qll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,10 +214,7 @@ predicate postUpdateStoreStep(Node nodeFrom, Node nodeTo, TypeTrackerContent con
214214
* ```
215215
*/
216216
private string getSetterCallAttributeName(Ast::SetterMethodCall call) {
217-
// TODO: this should be exposed in `SetterMethodCall`
218-
exists(string setterName |
219-
setterName = call.getMethodName() and result = setterName.prefix(setterName.length() - 1)
220-
)
217+
result = call.getTargetName()
221218
}
222219

223220
/**

0 commit comments

Comments
 (0)