Merge pull request #1217 from sellskin/master
Some checks failed
Check / check (1.22.x, macos-latest) (push) Has been cancelled
Check / check (1.22.x, ubuntu-latest) (push) Has been cancelled
Check / check (1.22.x, windows-latest) (push) Has been cancelled

remove code that will not be executed
This commit is contained in:
chungthuang 2024-08-06 10:36:30 -05:00 committed by GitHub
commit c7d63beba2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)