From ee382eb169bab70a3b44571ce5c363b80f1399e1 Mon Sep 17 00:00:00 2001 From: Scott Rigby Date: Wed, 12 Jan 2022 17:43:10 -0500 Subject: [PATCH] Remove unneeded assignment Signed-off-by: Scott Rigby --- pkg/downloader/chart_downloader.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/pkg/downloader/chart_downloader.go b/pkg/downloader/chart_downloader.go index 8bcd76395..8ca5cacb6 100644 --- a/pkg/downloader/chart_downloader.go +++ b/pkg/downloader/chart_downloader.go @@ -154,9 +154,7 @@ func (c *ChartDownloader) getOciURI(ref, version string, u *url.URL) (*url.URL, // If empty, try to get the highest available tag // If exact version, try to find it // If semver constraint string, try to find a match - providedVersion := version - - tag, err := registry.GetTagMatchingVersionOrConstraint(tags, providedVersion) + tag, err := registry.GetTagMatchingVersionOrConstraint(tags, version) if err != nil { return nil, err }