Skip to content

Commit b63b675

Browse files
RB: add explicit-this
Co-authored-by: Nick Rolfe <[email protected]>
1 parent 4f8f7cd commit b63b675

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ abstract private class IOOrFileMethodCall extends DataFlow::CallNode {
7272
abstract string getApi();
7373

7474
/** DEPRECATED: Alias for getApi */
75-
deprecated string getAPI() { result = getApi() }
75+
deprecated string getAPI() { result = this.getApi() }
7676

7777
/** Gets a node representing the data read or written by this call */
7878
abstract DataFlow::Node getADataNodeImpl();
@@ -116,7 +116,7 @@ private class IOOrFileReadMethodCall extends IOOrFileMethodCall {
116116
override string getApi() { result = api }
117117

118118
/** DEPRECATED: Alias for getApi */
119-
deprecated override string getAPI() { result = getApi() }
119+
deprecated override string getAPI() { result = this.getApi() }
120120

121121
override DataFlow::Node getADataNodeImpl() { result = this }
122122

@@ -160,7 +160,7 @@ private class IOOrFileWriteMethodCall extends IOOrFileMethodCall {
160160
override string getApi() { result = api }
161161

162162
/** DEPRECATED: Alias for getApi */
163-
deprecated override string getAPI() { result = getApi() }
163+
deprecated override string getAPI() { result = this.getApi() }
164164

165165
override DataFlow::Node getADataNodeImpl() { result = dataNode }
166166

0 commit comments

Comments
 (0)