Skip to content

Commit

Permalink
fix duplicated output
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Dec 4, 2023
1 parent 7433ab7 commit 1e927c8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions cmd/oras/root/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,6 @@ func doPull(ctx context.Context, src oras.ReadOnlyTarget, dst oras.GraphTarget,
return nil
}
name = desc.MediaType
} else {
result.filesLock.Lock()
result.files = append(result.files, meta.NewFile(name, po.Output, desc, fmt.Sprintf("%s@%s", po.Path, desc.Digest)))
result.filesLock.Unlock()
}
printed.Store(generateContentKey(desc), true)
if po.TTY == nil {
Expand Down

0 comments on commit 1e927c8

Please sign in to comment.