Skip to content

Commit

Permalink
chore: remove refs to deprecated io/ioutil
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed Aug 18, 2023
1 parent 85b2cdc commit 80424cf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mimetype.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ package mimetype

import (
"io"
"io/ioutil"
"mime"
"os"
"sync/atomic"
Expand Down Expand Up @@ -48,7 +47,7 @@ func DetectReader(r io.Reader) (*MIME, error) {
// Using atomic because readLimit can be written at the same time in other goroutine.
l := atomic.LoadUint32(&readLimit)
if l == 0 {
in, err = ioutil.ReadAll(r)
in, err = io.ReadAll(r)
if err != nil {
return errMIME, err
}
Expand Down

0 comments on commit 80424cf

Please sign in to comment.