From 871d3f6f1d62ab040f0b8c371d6841af8f46a40c Mon Sep 17 00:00:00 2001 From: Adam Martin Date: Tue, 13 Aug 2024 15:10:31 -0400 Subject: [PATCH] remove extra spaces Signed-off-by: Adam Martin --- pkg/content/oci.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/content/oci.go b/pkg/content/oci.go index a5a23fb3..5aa1396b 100644 --- a/pkg/content/oci.go +++ b/pkg/content/oci.go @@ -55,7 +55,7 @@ func (o *OCI) AddIndex(desc ocispec.Descriptor) error { if strings.TrimSpace(key.String()) != "--" { switch key.(type) { case name.Digest: - o.nameMap.Store(fmt.Sprintf("%s-%s", key.Context().String(), desc.Annotations[consts.KindAnnotationName]), desc) + o.nameMap.Store(fmt.Sprintf("%s-%s", key.Context().String(), desc.Annotations[consts.KindAnnotationName]), desc) case name.Tag: o.nameMap.Store(fmt.Sprintf("%s-%s", key.String(), desc.Annotations[consts.KindAnnotationName]), desc) }