From 6be37b2f8f30ad03861a809d855fe0a83968d2e2 Mon Sep 17 00:00:00 2001 From: Benoit Tigeot Date: Wed, 1 Oct 2025 15:39:06 +0200 Subject: [PATCH] Linting Signed-off-by: Benoit Tigeot --- pkg/registry/pushref.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/registry/pushref.go b/pkg/registry/pushref.go index 17f2c5004..33c801d1a 100644 --- a/pkg/registry/pushref.go +++ b/pkg/registry/pushref.go @@ -42,8 +42,8 @@ func BuildPushRef(href, chartName, chartVersion string) (string, error) { // Ensure repository ends with the chart name once (avoid duplication) finalRepo := ref.Repository if chartName != "" { - last := chartName // Extract last segment of current repository path + var last string if idx := strings.LastIndex(finalRepo, "/"); idx >= 0 { last = finalRepo[idx+1:] } else {