From 5f1d6e141feeba1fa47242da732425837127e547 Mon Sep 17 00:00:00 2001 From: 1Shubham7 Date: Thu, 20 Jul 2023 06:57:15 +0530 Subject: [PATCH] adding the changes as per billy's review Signed-off-by: Shubham Singh --- cmd/oras/internal/option/packer.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cmd/oras/internal/option/packer.go b/cmd/oras/internal/option/packer.go index 1f8f0c0fc..af28ba3a3 100644 --- a/cmd/oras/internal/option/packer.go +++ b/cmd/oras/internal/option/packer.go @@ -100,8 +100,9 @@ func (opts *Packer) LoadManifestAnnotations() (annotations map[string]map[string if opts.AnnotationFilePath != "" { if err = decodeJSON(opts.AnnotationFilePath, &annotations); err != nil { return nil, fmt.Errorf("error loading manifest annotations from file %s: %w, - Refer to the document at https://oras.land/docs/how_to_guides/manifest_annotations ", opts.AnnotationFilePath, err) + refer to the document at https://oras.land/docs/how_to_guides/manifest_annotations", opts.AnnotationFilePath, err) } + } if len(opts.ManifestAnnotations) != 0 { annotations = make(map[string]map[string]string)