Skip to content

Commit 9d2d4f4

Browse files
committed
Fix implicit this in two places
1 parent f38867d commit 9d2d4f4

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

go/ql/lib/semmle/go/security/LogInjectionCustomizations.qll

+3-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,9 @@ module LogInjection {
6969
* Gets an argument to this call corresponding to a string that will be
7070
* replaced.
7171
*/
72-
DataFlow::Node getAReplacedArgument() { exists(int n | n % 2 = 0 and result = getArgument(n)) }
72+
DataFlow::Node getAReplacedArgument() {
73+
exists(int n | n % 2 = 0 and result = this.getArgument(n))
74+
}
7375
}
7476

7577
/**

go/ql/lib/semmle/go/security/StringBreakCustomizations.qll

+3-1
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,9 @@ module StringBreak {
116116
* Gets an argument to this call corresponding to a string that will be
117117
* replaced.
118118
*/
119-
DataFlow::Node getAReplacedArgument() { exists(int n | n % 2 = 0 and result = getArgument(n)) }
119+
DataFlow::Node getAReplacedArgument() {
120+
exists(int n | n % 2 = 0 and result = this.getArgument(n))
121+
}
120122
}
121123

122124
/**

0 commit comments

Comments
 (0)