use fmt pkg for Errorf call in lint.go

Signed-off-by: James Sheppard <jgsheppa@protonmail.com>
pull/12063/head
James Sheppard 2 years ago
parent c4773b473a
commit c5b9609397

@ -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())

Loading…
Cancel
Save