Skip to content

Commit

Permalink
doc clean
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Oct 17, 2023
1 parent 692fd31 commit 8a52cc9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/oras/internal/display/track/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ func NewTarget(t oras.GraphTarget, actionPrompt, donePrompt string, tty *os.File
return gt, nil
}

// Push pushes the content to the Target with tracking.
// Push pushes the content to the base oras.GraphTarget with tracking.
func (t *graphTarget) Push(ctx context.Context, expected ocispec.Descriptor, content io.Reader) error {
r, err := managedReader(content, expected, t.manager, t.actionPrompt, t.donePrompt)
if err != nil {
Expand All @@ -81,7 +81,7 @@ func (t *graphTarget) Push(ctx context.Context, expected ocispec.Descriptor, con
return nil
}

// PushReference pushes the content to the Target with tracking.
// PushReference pushes the content to the base oras.GraphTarget with tracking.
func (rgt *referenceGraphTarget) PushReference(ctx context.Context, expected ocispec.Descriptor, content io.Reader, reference string) error {
r, err := managedReader(content, expected, rgt.manager, rgt.actionPrompt, rgt.donePrompt)
if err != nil {
Expand Down

0 comments on commit 8a52cc9

Please sign in to comment.