From 33d3b6a0a7897d4414b0edfb284f862751da99d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Paj=C4=85k?= Date: Tue, 20 Feb 2024 08:21:45 +0100 Subject: [PATCH] Fix revive lint issues --- .../splunkclient-go/transport/test/splunkclient-go_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/instrumentation/k8s.io/client-go/splunkclient-go/transport/test/splunkclient-go_test.go b/instrumentation/k8s.io/client-go/splunkclient-go/transport/test/splunkclient-go_test.go index 412c0bdd0..764879c6a 100644 --- a/instrumentation/k8s.io/client-go/splunkclient-go/transport/test/splunkclient-go_test.go +++ b/instrumentation/k8s.io/client-go/splunkclient-go/transport/test/splunkclient-go_test.go @@ -71,7 +71,7 @@ func request(t *testing.T, handle func(http.ResponseWriter, *http.Request)) (*tr func TestEndToEndWrappedTransport(t *testing.T) { content := []byte("Hello, world!") - sr, resp, url := request(t, func(w http.ResponseWriter, r *http.Request) { + sr, resp, url := request(t, func(w http.ResponseWriter, _ *http.Request) { n, err := w.Write(content) assert.NoError(t, err) assert.Equal(t, len(content), n) @@ -96,7 +96,7 @@ func TestEndToEndWrappedTransport(t *testing.T) { } func TestWrappedTransportErrorResponse(t *testing.T) { - sr, resp, _ := request(t, func(w http.ResponseWriter, r *http.Request) { + sr, resp, _ := request(t, func(w http.ResponseWriter, _ *http.Request) { w.WriteHeader(http.StatusBadRequest) }) require.NoError(t, resp.Body.Close())