mirror of
https://github.com/willnorris/imageproxy.git
synced 2026-05-07 11:02:39 +02:00
all: remove deprecated use of io/ioutil
This commit is contained in:
parent
12d8f92d33
commit
5ffd8db241
6 changed files with 9 additions and 14 deletions
|
|
@ -11,7 +11,6 @@ import (
|
|||
"encoding/hex"
|
||||
"errors"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"log"
|
||||
"path"
|
||||
|
||||
|
|
@ -35,7 +34,7 @@ func (c *cache) Get(key string) ([]byte, bool) {
|
|||
}
|
||||
defer r.Close()
|
||||
|
||||
value, err := ioutil.ReadAll(r)
|
||||
value, err := io.ReadAll(r)
|
||||
if err != nil {
|
||||
log.Printf("error reading from gcs: %v", err)
|
||||
return nil, false
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue