Skip to content

Commit

Permalink
unname unused params
Browse files Browse the repository at this point in the history
  • Loading branch information
ninedraft committed Jan 9, 2022
1 parent 5b9c2b8 commit df094bd
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions gemax/server_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func TestServerCancelListen(test *testing.T) {
var server = &gemax.Server{
Addr: testaddr.Addr(),
Logf: test.Logf,
Handler: func(ctx context.Context, rw gemax.ResponseWriter, req gemax.IncomingRequest) {
Handler: func(_ context.Context, rw gemax.ResponseWriter, _ gemax.IncomingRequest) {
_, _ = io.WriteString(rw, "example text")
},
}
Expand Down Expand Up @@ -102,7 +102,7 @@ func TestListenAndServe(test *testing.T) {
var server = &gemax.Server{
Addr: "localhost:40423",
Logf: test.Logf,
Handler: func(ctx context.Context, rw gemax.ResponseWriter, req gemax.IncomingRequest) {
Handler: func(_ context.Context, rw gemax.ResponseWriter, _ gemax.IncomingRequest) {
_, _ = io.WriteString(rw, "example text")
},
}
Expand Down Expand Up @@ -143,7 +143,7 @@ func setupEchoServer(t *testing.T) (*fakeListener, *gemax.Server) {
t.Helper()
var server = &gemax.Server{
Logf: t.Logf,
Handler: func(ctx context.Context, rw gemax.ResponseWriter, req gemax.IncomingRequest) {
Handler: func(_ context.Context, rw gemax.ResponseWriter, req gemax.IncomingRequest) {
_, _ = rw.Write([]byte(req.URL().String()))
},
}
Expand Down

0 comments on commit df094bd

Please sign in to comment.