From 0783c5d5ec29f3f657d07a99932e3e8fe3364ce1 Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 16:26:30 +0000 Subject: [PATCH] use fmt and errors pkgs in complete and run funcs Signed-off-by: James Sheppard --- cmd/helm/plugin_update.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helm/plugin_update.go b/cmd/helm/plugin_update.go index 4515acdbb..cf790d0c2 100644 --- a/cmd/helm/plugin_update.go +++ b/cmd/helm/plugin_update.go @@ -16,12 +16,12 @@ limitations under the License. package main import ( + "errors" "fmt" "io" "path/filepath" "strings" - "github.com/pkg/errors" "github.com/spf13/cobra" "helm.sh/helm/v3/pkg/plugin" @@ -81,7 +81,7 @@ func (o *pluginUpdateOptions) run(out io.Writer) error { } } if len(errorPlugins) > 0 { - return errors.Errorf(strings.Join(errorPlugins, "\n")) + return fmt.Errorf(strings.Join(errorPlugins, "\n")) } return nil }