From 2dc8094b47912674eb297bb81190acb370a7fc91 Mon Sep 17 00:00:00 2001 From: James Sheppard Date: Sun, 7 May 2023 16:24:40 +0000 Subject: [PATCH] use fmt and errors pkgs from std lib in complete and run funcs Signed-off-by: James Sheppard --- cmd/helm/plugin_uninstall.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/helm/plugin_uninstall.go b/cmd/helm/plugin_uninstall.go index ee4a47beb..a71636f84 100644 --- a/cmd/helm/plugin_uninstall.go +++ b/cmd/helm/plugin_uninstall.go @@ -16,12 +16,12 @@ limitations under the License. package main import ( + "errors" "fmt" "io" "os" "strings" - "github.com/pkg/errors" "github.com/spf13/cobra" "helm.sh/helm/v3/pkg/plugin" @@ -78,7 +78,7 @@ func (o *pluginUninstallOptions) 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 }