Skip to content

Commit

Permalink
remove extra spaces
Browse files Browse the repository at this point in the history
Signed-off-by: Adam Martin <[email protected]>
  • Loading branch information
amartin120 committed Aug 13, 2024
1 parent 7d48ce1 commit 871d3f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/content/oci.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 871d3f6

Please sign in to comment.