mirror of
https://github.com/ddidderr/wuffs.git
synced 2026-11-24 00:52:18 +01:00
Remove calls to Go's deprecated "io/ioutil"
This commit is contained in:
1 parent
788479dd64
commit
226c476994
31 files changed
+73
-93
No files matched your search
@@ -18,7 +18,6 @@ import (
|
||||
"bytes"
|
||||
"compress/flate"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"testing"
|
||||
|
||||
"github.com/google/wuffs/internal/testcut"
|
||||
@@ -43,7 +42,7 @@ func newReader(r io.Reader) (io.ReadCloser, error) {
|
||||
}
|
||||
|
||||
func decodeFlate(src []byte) string {
|
||||
dst, err := ioutil.ReadAll(flate.NewReader(bytes.NewReader(src)))
|
||||
dst, err := io.ReadAll(flate.NewReader(bytes.NewReader(src)))
|
||||
if err != nil {
|
||||
return err.Error()
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user