From 1fe85e82f77afa43e7a9868fe653010133b6dedc Mon Sep 17 00:00:00 2001 From: harveyshao Date: Thu, 8 Dec 2022 21:58:40 +0800 Subject: [PATCH] opt some --- base/nfs/tar.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/base/nfs/tar.go b/base/nfs/tar.go index 3bbc06e3..7ccd89b1 100644 --- a/base/nfs/tar.go +++ b/base/nfs/tar.go @@ -4,6 +4,7 @@ import ( "archive/tar" "compress/gzip" "io" + "io/ioutil" "os" "path" "strings" @@ -108,7 +109,7 @@ func init() { }) } func ReadAll(m *ice.Message, r io.Reader) []byte { - if buf, e := io.ReadAll(r); m.Warn(e) { + if buf, e := ioutil.ReadAll(r); m.Warn(e) { return buf } else { return buf