From: qydysky Date: Fri, 31 Jul 2020 08:17:28 +0000 (+0800) Subject: 15 X-Git-Tag: v0.0.2~73 X-Git-Url: http://127.0.0.1:8081/?a=commitdiff_plain;h=2be126c53a0055c50c56658c214f4675af266a07;p=part%2F.git 15 --- diff --git a/Zip.go b/Zip.go index d0d0450..a1d0c52 100644 --- a/Zip.go +++ b/Zip.go @@ -9,6 +9,7 @@ import ( "strings" "bytes" "time" + "errors" ) type lzip struct {sync.Mutex} @@ -179,7 +180,7 @@ func (t *rZip) Read(path string) (*bytes.Buffer,string,error) { } return &bytes.Buffer{},time.Now().UTC().Format(timeLayoutStr),err } - return &bytes.Buffer{},time.Now().UTC().Format(timeLayoutStr),nil + return &bytes.Buffer{},time.Now().UTC().Format(timeLayoutStr),errors.New("not found") } func (t *rZip) Close() {