aboutsummaryrefslogtreecommitdiff
path: root/gopherschwift
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2022-10-26 15:23:04 +0200
committerSandro Jäckel <sandro.jaeckel@sap.com>2022-10-28 12:55:16 +0200
commit8b38a040830109f19550e7329b82ec5caf76b321 (patch)
tree13ecc54219914102f69fb59e005a836a88f78f5c /gopherschwift
parent4f67f4c0a59a850321b37a154efc9bde60539ca8 (diff)
downloadgo-schwift-8b38a040830109f19550e7329b82ec5caf76b321.tar.gz
Fix linting errors
Diffstat (limited to 'gopherschwift')
-rw-r--r--gopherschwift/package.go3
1 files changed, 1 insertions, 2 deletions
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
}