Skip to content

Commit 8715790

Browse files
committed
add explicit this
1 parent a562568 commit 8715790

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ruby/ql/lib/codeql/ruby/ast/Operation.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,12 +169,12 @@ class AddExprRoot extends AddExpr {
169169
private AstNode getALeafOrAdd() {
170170
result = this.getAChild()
171171
or
172-
result = getALeafOrAdd().(AddExpr).getAChild()
172+
result = this.getALeafOrAdd().(AddExpr).getAChild()
173173
}
174174

175175
/** Gets a leaf node of this add expression. */
176176
AstNode getALeaf() {
177-
result = getALeafOrAdd() and
177+
result = this.getALeafOrAdd() and
178178
not result instanceof AddExpr
179179
}
180180
}

0 commit comments

Comments
 (0)