Skip to content

Commit a062d51

Browse files
committed
Swap order of equality for easier comprehension
1 parent 46c75df commit a062d51

File tree

1 file changed

+2
-2
lines changed
  • go/ql/lib/semmle/go/security

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,10 +139,10 @@ module SharedXss {
139139
HtmlTemplateSanitizer() {
140140
exists(Method m, DataFlow::CallNode call | m = call.getCall().getTarget() |
141141
m.hasQualifiedName("html/template", "Template", "ExecuteTemplate") and
142-
call.getArgument(2) = this
142+
this = call.getArgument(2)
143143
or
144144
m.hasQualifiedName("html/template", "Template", "Execute") and
145-
call.getArgument(1) = this
145+
this = call.getArgument(1)
146146
)
147147
}
148148
}

0 commit comments

Comments
 (0)