fix: fix lint issue

This commit is contained in:
dudaodong committed 2022-12-10 16:53:41 +08:00
1 parent 13bbe19ab2
commit 1197e8d1b6
6 files changed
+30 -29

No files matched your search

+6 -2
View File
@@ -179,10 +179,14 @@ func TestZipAndUnZip(t *testing.T) {
file, _ := os.OpenFile(srcFile, os.O_WRONLY|os.O_TRUNC, 0777)
defer file.Close()
file.WriteString("hello\nworld")
_, err := file.WriteString("hello\nworld")
if err != nil {
t.Fail()
}
zipFile := "./text.zip"
err := Zip(srcFile, zipFile)
err = Zip(srcFile, zipFile)
assert.IsNil(err)
unZipPath := "./unzip"