remove code that will not be executed

Signed-off-by: sellskin <mydesk@yeah.net>
This commit is contained in:
sellskin 2024-03-25 12:53:53 +08:00
parent bb29a0e194
commit 619c12cc64
1 changed files with 0 additions and 2 deletions

View File

@ -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) req, err := http.NewRequest(method, ts.URL+path, body)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
return nil, nil
} }
resp, err := ts.Client().Do(req) resp, err := ts.Client().Do(req)
if err != nil { if err != nil {
t.Fatal(err) t.Fatal(err)
return nil, nil
} }
var claims managementErrorResponse var claims managementErrorResponse
err = json.NewDecoder(resp.Body).Decode(&claims) err = json.NewDecoder(resp.Body).Decode(&claims)