lint fix errors.

This commit is contained in:
Miroslav Šedivý 2021-08-18 22:37:19 +02:00
parent f088ff1d08
commit bdff2ddabe

View File

@ -73,7 +73,9 @@ func Unzip(zipPath, target string) error {
for _, file := range reader.File {
path := filepath.Join(target, file.Name)
if file.FileInfo().IsDir() {
os.MkdirAll(path, file.Mode())
if err := os.MkdirAll(path, file.Mode()); err != nil {
return err
}
continue
}