From bdff2ddabe1cb6d8a470760103e0d6809ede17df Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Wed, 18 Aug 2021 22:37:19 +0200 Subject: [PATCH] lint fix errors. --- internal/utils/zip.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/internal/utils/zip.go b/internal/utils/zip.go index 8bbd644c..0818398f 100644 --- a/internal/utils/zip.go +++ b/internal/utils/zip.go @@ -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 }