lint fix errors.
This commit is contained in:
parent
f088ff1d08
commit
bdff2ddabe
1 changed files with 3 additions and 1 deletions
|
|
@ -73,7 +73,9 @@ func Unzip(zipPath, target string) error {
|
||||||
for _, file := range reader.File {
|
for _, file := range reader.File {
|
||||||
path := filepath.Join(target, file.Name)
|
path := filepath.Join(target, file.Name)
|
||||||
if file.FileInfo().IsDir() {
|
if file.FileInfo().IsDir() {
|
||||||
os.MkdirAll(path, file.Mode())
|
if err := os.MkdirAll(path, file.Mode()); err != nil {
|
||||||
|
return err
|
||||||
|
}
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue