From 42222a9fe06e1b1a027fe0a287d9c9617db16c80 Mon Sep 17 00:00:00 2001 From: Calvin Lobo Date: Sat, 6 Jul 2024 20:16:15 -0600 Subject: [PATCH] lint --- ecosystem/http/middleware_test.go | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ecosystem/http/middleware_test.go b/ecosystem/http/middleware_test.go index 52555ce..a664b08 100644 --- a/ecosystem/http/middleware_test.go +++ b/ecosystem/http/middleware_test.go @@ -96,6 +96,7 @@ func ensureHeaderOrder(t *testing.T, resp *httptest.ResponseRecorder, req *http. func TestPreAndPostCallMiddleware(t *testing.T) { + //nolint:unparam ep := func(writer http.ResponseWriter, request *http.Request) error { request.Header.Add("call", timestamp()) @@ -103,7 +104,7 @@ func TestPreAndPostCallMiddleware(t *testing.T) { require.NoError(t, err) require.Greater(t, n, 0) - return nil // nolint:unparam + return nil } req, err := http.NewRequest("GET", "url", nil) @@ -176,6 +177,7 @@ func TestPreAndPostCallMiddleware(t *testing.T) { func TestMiddlewareAdapter(t *testing.T) { + //nolint:unparam ep := func(writer http.ResponseWriter, request *http.Request) error { request.Header.Add("call", timestamp()) @@ -183,7 +185,7 @@ func TestMiddlewareAdapter(t *testing.T) { require.NoError(t, err) require.Greater(t, n, 0) - return nil // nolint:unparam + return nil } req, err := http.NewRequest("GET", "url", nil) @@ -244,6 +246,7 @@ func TestMiddlewareAdapter(t *testing.T) { func TestMiddlewareReverseAdapter(t *testing.T) { + //nolint:unparam ep := func(writer http.ResponseWriter, request *http.Request) error { request.Header.Add("call", timestamp()) @@ -251,7 +254,7 @@ func TestMiddlewareReverseAdapter(t *testing.T) { require.NoError(t, err) require.Greater(t, n, 0) - return nil // nolint:unparam + return nil } req, err := http.NewRequest("GET", "url", nil)