From a7e4ae752af018b357f551c653c2b39bc5720313 Mon Sep 17 00:00:00 2001 From: stan-sz <37585349+stan-sz@users.noreply.github.com> Date: Mon, 11 Apr 2022 10:58:48 +0200 Subject: [PATCH] Update install.go Feedback from PR Signed-off-by: GitHub --- pkg/action/install.go | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/pkg/action/install.go b/pkg/action/install.go index 1e3ceba0c..36dc6b7bb 100644 --- a/pkg/action/install.go +++ b/pkg/action/install.go @@ -757,14 +757,7 @@ func (c *ChartPathOptions) LocateChart(name string, settings *cli.EnvSettings) ( return filename, err } return lname, nil - } else if settings.Debug { - return filename, err - } - - atVersion := "" - if version != "" { - atVersion = fmt.Sprintf(" at version %q", version) + } else { + return "", err } - - return filename, errors.Errorf("failed to download %q%s because of %s", name, atVersion, err) }