From 966a4a5d7f603eebd91036a3c14958576aea9f31 Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 10:32:29 +0000 Subject: [PATCH] use fmt.Errorf in chart_uploader instead of errors.Errorf Signed-off-by: James Sheppard --- pkg/uploader/chart_uploader.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/uploader/chart_uploader.go b/pkg/uploader/chart_uploader.go index d7e940406..b1cd6e666 100644 --- a/pkg/uploader/chart_uploader.go +++ b/pkg/uploader/chart_uploader.go @@ -20,8 +20,6 @@ import ( "io" "net/url" - "github.com/pkg/errors" - "helm.sh/helm/v3/pkg/pusher" "helm.sh/helm/v3/pkg/registry" ) @@ -42,7 +40,7 @@ type ChartUploader struct { func (c *ChartUploader) UploadTo(ref, remote string) error { u, err := url.Parse(remote) if err != nil { - return errors.Errorf("invalid chart URL format: %s", remote) + return fmt.Errorf("invalid chart URL format: %s", remote) } if u.Scheme == "" {