Linter fixes numero 2 (#4408)
This commit is contained in:
1 parent
25bce9e8ff
commit
49803e653c
23 files changed
+172
-109
No files matched your search
@@ -10,7 +10,6 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"net"
|
||||
"net/http"
|
||||
"net/url"
|
||||
@@ -50,7 +49,7 @@ func TestAuthenticationHandler(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, http.StatusOK, resp.StatusCode, "Got response: %v", resp)
|
||||
|
||||
b, err = ioutil.ReadAll(resp.Body)
|
||||
b, err = io.ReadAll(resp.Body)
|
||||
require.NoError(t, err)
|
||||
body := make(map[string]any)
|
||||
require.NoError(t, json.Unmarshal(b, &body))
|
||||
@@ -71,7 +70,7 @@ func TestAuthenticationHandler(t *testing.T) {
|
||||
require.NoError(t, err)
|
||||
assert.Equal(t, http.StatusOK, resp.StatusCode, "Got response: %v", resp)
|
||||
|
||||
b, err = ioutil.ReadAll(resp.Body)
|
||||
b, err = io.ReadAll(resp.Body)
|
||||
require.NoError(t, err)
|
||||
body = make(map[string]any)
|
||||
require.NoError(t, json.Unmarshal(b, &body))
|
||||
|
||||
Reference in new issue
Block a user