From b83569f393c73488a6ca1a9bb51781ba21febe8d Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sat, 6 May 2023 13:29:55 +0100 Subject: [PATCH] chore: fix go linter --- .golangci.yaml | 2 +- pkg/util/paths.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.golangci.yaml b/.golangci.yaml index 7718ccda2..212709343 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 400fb4144..9457819fb 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