Skip to content

Commit 9bf379f

Browse files
dmitshurgopherbot
authored andcommitted
websocket: fix printf(var) mistake detected by latest printf checker
For golang/go#69267. Change-Id: Ica6d123312495966ad6d222d67944fd602216853 Reviewed-on: https://go-review.googlesource.com/c/net/+/610799 Reviewed-by: Alan Donovan <adonovan@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
1 parent 4542a42 commit 9bf379f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

websocket/hybi_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Sec-WebSocket-Protocol: chat
163163
}
164164
for k, v := range expectedHeader {
165165
if req.Header.Get(k) != v {
166-
t.Errorf(fmt.Sprintf("%s expected %q but got %q", k, v, req.Header.Get(k)))
166+
t.Errorf("%s expected %q but got %q", k, v, req.Header.Get(k))
167167
}
168168
}
169169
}

0 commit comments

Comments
 (0)