remove io/util for advanced golang (#16011)

This commit is contained in:
yanggang
2022-11-08 23:58:02 +08:00
committed by GitHub
parent 72afc2727a
commit 52769e1e71

View File

@@ -24,7 +24,6 @@ import (
"errors"
"fmt"
"io"
"io/ioutil"
"os"
"strings"
"time"
@@ -37,7 +36,7 @@ import (
func inspectToExportType(downloadPath string, datajson bool) error {
decode := func(r io.Reader, file string) ([]byte, error) {
b, e := ioutil.ReadAll(r)
b, e := io.ReadAll(r)
if e != nil {
return nil, e
}