Skip to content

Commit

Permalink
websocket: fix printf(var) mistake detected by latest printf checker
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dmitshur authored and gopherbot committed Sep 4, 2024
1 parent 4542a42 commit 9bf379f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion websocket/hybi_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ Sec-WebSocket-Protocol: chat
}
for k, v := range expectedHeader {
if req.Header.Get(k) != v {
t.Errorf(fmt.Sprintf("%s expected %q but got %q", k, v, req.Header.Get(k)))
t.Errorf("%s expected %q but got %q", k, v, req.Header.Get(k))
}
}
}
Expand Down

0 comments on commit 9bf379f

Please sign in to comment.