Linter fixes numero 2 (#4408)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2024-02-14 17:14:31 -05:00
1 parent 25bce9e8ff
commit 49803e653c
23 files changed
+172 -109

No files matched your search

+2 -3
View File
@@ -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))