mirror of
https://github.com/github/codeql.git
synced 2026-02-19 00:13:44 +01:00
Ruby: simplify getSetterCallAttributeName
This commit is contained in:
@@ -214,10 +214,7 @@ predicate postUpdateStoreStep(Node nodeFrom, Node nodeTo, TypeTrackerContent con
|
||||
* ```
|
||||
*/
|
||||
private string getSetterCallAttributeName(Ast::SetterMethodCall call) {
|
||||
// TODO: this should be exposed in `SetterMethodCall`
|
||||
exists(string setterName |
|
||||
setterName = call.getMethodName() and result = setterName.prefix(setterName.length() - 1)
|
||||
)
|
||||
result = call.getTargetName()
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user