From 2be126c53a0055c50c56658c214f4675af266a07 Mon Sep 17 00:00:00 2001 From: qydysky Date: Fri, 31 Jul 2020 16:17:28 +0800 Subject: [PATCH] 15 --- Zip.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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() { -- 2.39.2