diff options
Diffstat (limited to 'modules/public/static.go')
-rw-r--r-- | modules/public/static.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/modules/public/static.go b/modules/public/static.go index 6994ed6508..32ba0fe258 100644 --- a/modules/public/static.go +++ b/modules/public/static.go @@ -11,7 +11,6 @@ import ( "bytes" "compress/gzip" "io" - "io/ioutil" "mime" "net/http" "os" @@ -31,7 +30,7 @@ func Asset(name string) ([]byte, error) { return nil, err } defer f.Close() - return ioutil.ReadAll(f) + return io.ReadAll(f) } func AssetNames() []string { |