From 30c435fee6eb55b44eaf3edbac805d395149bae4 Mon Sep 17 00:00:00 2001 From: sellskin Date: Mon, 25 Mar 2024 12:53:53 +0800 Subject: [PATCH] remove code that will not be executed Signed-off-by: sellskin --- management/middleware_test.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/management/middleware_test.go b/management/middleware_test.go index 5af7e8f3..0023536e 100644 --- a/management/middleware_test.go +++ b/management/middleware_test.go @@ -52,13 +52,11 @@ func testRequest(t *testing.T, ts *httptest.Server, method, path string, body io req, err := http.NewRequest(method, ts.URL+path, body) if err != nil { t.Fatal(err) - return nil, nil } resp, err := ts.Client().Do(req) if err != nil { t.Fatal(err) - return nil, nil } var claims managementErrorResponse err = json.NewDecoder(resp.Body).Decode(&claims)