Skip to content

Commit 71703aa

Browse files
committed
Improve formatting of some QL
1 parent d437a09 commit 71703aa

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

go/ql/lib/semmle/go/frameworks/stdlib/NetHttp.qll

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -179,12 +179,11 @@ module NetHttp {
179179
private class RequestCall extends Http::ClientRequest::Range, DataFlow::CallNode {
180180
RequestCall() {
181181
exists(string functionName |
182-
(
183-
this.getTarget().hasQualifiedName("net/http", functionName)
184-
or
185-
this.getTarget().(Method).hasQualifiedName("net/http", "Client", functionName)
186-
) and
187-
(functionName = "Get" or functionName = "Post" or functionName = "PostForm")
182+
this.getTarget().hasQualifiedName("net/http", functionName)
183+
or
184+
this.getTarget().(Method).hasQualifiedName("net/http", "Client", functionName)
185+
|
186+
functionName = ["Get", "Post", "PostForm"]
188187
)
189188
}
190189

0 commit comments

Comments
 (0)