diff --git a/.golangci.yaml b/.golangci.yaml index 7718ccda..21270934 100644 --- a/.golangci.yaml +++ b/.golangci.yaml @@ -2,4 +2,4 @@ linters-settings: staticcheck: - checks: ["all", "-SA1019" ] + checks: ["all", "-SA1019", "-SA4009" ] diff --git a/pkg/util/paths.go b/pkg/util/paths.go index 400fb414..9457819f 100644 --- a/pkg/util/paths.go +++ b/pkg/util/paths.go @@ -44,7 +44,7 @@ func ExtratTo(src *paths.Path, dst *paths.Path, subfolders []string) error { } tarIn := tar.NewReader(in) - for true { + for { header, err := tarIn.Next() if err == io.EOF { break