From 8b38a040830109f19550e7329b82ec5caf76b321 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Wed, 26 Oct 2022 15:23:04 +0200 Subject: Fix linting errors --- request.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'request.go') diff --git a/request.go b/request.go index b789161..2e78f00 100644 --- a/request.go +++ b/request.go @@ -21,7 +21,6 @@ package schwift import ( "context" "io" - "io/ioutil" "net/http" "net/url" "strings" @@ -169,7 +168,7 @@ func (r Request) Do(backend Backend) (*http.Response, error) { } func drainResponseBody(r *http.Response) error { - _, err := io.Copy(ioutil.Discard, r.Body) + _, err := io.Copy(io.Discard, r.Body) if err != nil { return err } @@ -177,7 +176,7 @@ func drainResponseBody(r *http.Response) error { } func collectResponseBody(r *http.Response) ([]byte, error) { - buf, err := ioutil.ReadAll(r.Body) + buf, err := io.ReadAll(r.Body) if err != nil { return nil, err } -- cgit v1.2.3