From 4ee468f22ddbc460771797e34b063758d9915b78 Mon Sep 17 00:00:00 2001 From: Oleksandr Redko Date: Tue, 14 May 2024 17:28:58 +0300 Subject: [PATCH] Fix useless error check in extractTarGz --- pkg/extract/extract.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/extract/extract.go b/pkg/extract/extract.go index 7fc90eea3..c69811929 100644 --- a/pkg/extract/extract.go +++ b/pkg/extract/extract.go @@ -88,7 +88,7 @@ func extractTarGz(source, target string) error { return err } - f.Chmod(info.Mode()) + err = f.Chmod(info.Mode()) if err != nil { return err } @@ -142,7 +142,7 @@ func extractZip(source, target string) error { return err } - f.Chmod(zf.Mode()) + err = f.Chmod(zf.Mode()) if err != nil { return err }