diff options
Diffstat (limited to 'gopherschwift/package.go')
| -rw-r--r-- | gopherschwift/package.go | 3 |
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 } |
