From c5b9609397ee4c13b9bdd35ccaa100a3c45c5d40 Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 16:52:19 +0000 Subject: [PATCH] use fmt pkg for Errorf call in lint.go Signed-off-by: James Sheppard --- pkg/action/lint.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkg/action/lint.go b/pkg/action/lint.go index e71cfe733..b2be74f89 100644 --- a/pkg/action/lint.go +++ b/pkg/action/lint.go @@ -17,6 +17,7 @@ limitations under the License. package action import ( + "fmt" "os" "path/filepath" "strings" @@ -111,7 +112,7 @@ func lintChart(path string, vals map[string]interface{}, namespace string, stric return linter, errors.Wrapf(err, "unable to read temporary output directory %s", tempDir) } if !files[0].IsDir() { - return linter, errors.Errorf("unexpected file %s in temporary output directory %s", files[0].Name(), tempDir) + return linter, fmt.Errorf("unexpected file %s in temporary output directory %s", files[0].Name(), tempDir) } chartPath = filepath.Join(tempDir, files[0].Name())