Skip to content

Commit

Permalink
code clean
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <jinzha1@microsoft.com>
  • Loading branch information
qweeah committed Jan 9, 2023
1 parent 1cdb3fb commit 53b96a5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/oras/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,7 @@ func fetchAllReferrers(ctx context.Context, repo *remote.Repository, desc ocispe
referrerNode := node.AddPath(r.ArtifactType, r.Digest)
if opts.Verbose {
for k, v := range r.Annotations {
v := map[string]string{k: v}
bytes, err := yaml.Marshal(v)
bytes, err := yaml.Marshal(map[string]string{k: v})
if err != nil {
return err
}
Expand Down

0 comments on commit 53b96a5

Please sign in to comment.