From be97863cf863e86e2431c285e485a2f1bf29d01b Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 19:27:05 +0000 Subject: [PATCH] remove errors.Cause as err does not have Cause method Signed-off-by: James Sheppard --- cmd/helm/repo.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cmd/helm/repo.go b/cmd/helm/repo.go index ad6ceaa8f..a08218d82 100644 --- a/cmd/helm/repo.go +++ b/cmd/helm/repo.go @@ -20,7 +20,6 @@ import ( "io" "os" - "github.com/pkg/errors" "github.com/spf13/cobra" "helm.sh/helm/v3/cmd/helm/require" @@ -50,5 +49,5 @@ func newRepoCmd(out io.Writer) *cobra.Command { } func isNotExist(err error) bool { - return os.IsNotExist(errors.Cause(err)) + return os.IsNotExist(err) }