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 --- gopherschwift/package.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'gopherschwift/package.go') diff --git a/gopherschwift/package.go b/gopherschwift/package.go index adeee83..3c89074 100644 --- a/gopherschwift/package.go +++ b/gopherschwift/package.go @@ -41,7 +41,6 @@ package gopherschwift import ( "io" - "io/ioutil" "net/http" "github.com/gophercloud/gophercloud" @@ -107,7 +106,7 @@ func (g *backend) do(req *http.Request, afterReauth bool) (*http.Response, error //detect expired token if resp.StatusCode == http.StatusUnauthorized && !afterReauth { - _, err := io.Copy(ioutil.Discard, resp.Body) + _, err := io.Copy(io.Discard, resp.Body) if err != nil { return nil, err } -- cgit v1.2.3