Skip to content

Commit

Permalink
Fix unused parameters (linter)
Browse files Browse the repository at this point in the history
  • Loading branch information
steves-canva committed May 27, 2024
1 parent e173f81 commit d8ca92c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions config/confighttp/ratelimit_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ func TestServerRateLimit(t *testing.T) {
}

var handlerCalled bool
handler := http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
handler := http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {
handlerCalled = true
})

Expand Down Expand Up @@ -78,7 +78,7 @@ func TestRejectedServerRateLimit(t *testing.T) {
},
}

srv, err := hss.ToServer(context.Background(), host, componenttest.NewNopTelemetrySettings(), http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {}))
srv, err := hss.ToServer(context.Background(), host, componenttest.NewNopTelemetrySettings(), http.HandlerFunc(func(_ http.ResponseWriter, _ *http.Request) {}))
require.NoError(t, err)

// test
Expand Down

0 comments on commit d8ca92c

Please sign in to comment.