Skip to content

Commit 611b7cc

Browse files
committed
style: gofmt negatives.go fixture
Collapses a single double-space before an inline comment that gofmt normalizes to one space. No semantic change. Fixes the make check-formatting CI step that flagged the file.
1 parent 771b433 commit 611b7cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • go/ql/test/experimental/CWE-918/IdnaIpLiteralSmuggle

go/ql/test/experimental/CWE-918/IdnaIpLiteralSmuggle/negatives.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ func urlParseOnly(req *http.Request) {
8181
// reaches a sink.
8282
func idnaDiscard(req *http.Request) {
8383
host := req.Header.Get("X-HOST-DISCARD")
84-
_, _ = idna.Lookup.ToASCII(host) // OK: result discarded
84+
_, _ = idna.Lookup.ToASCII(host) // OK: result discarded
8585
}
8686

8787
// Compliant: post-IDNA TrimSuffix + net.ParseIP recheck before net.LookupHost.

0 commit comments

Comments
 (0)