Skip to content

Commit

Permalink
code clean
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Mar 29, 2024
1 parent a3f5f02 commit d839760
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/oras/internal/display/status/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ type PullHandler interface {
// TrackTarget returns a tracked target.
// If no TTY is available, it returns the original target.
TrackTarget(gt oras.GraphTarget) (oras.GraphTarget, error)
io.Closer
// OnNodeProcessing is called when processing a manifest.
OnNodeProcessing(desc ocispec.Descriptor) error
// OnNodeDownloading is called before downloading a node.
Expand All @@ -50,4 +49,5 @@ type PullHandler interface {
OnNodeRestored(desc ocispec.Descriptor) error
// OnNodeSkipped is called when a node is skipped.
OnNodeSkipped(desc ocispec.Descriptor) error
io.Closer
}
2 changes: 0 additions & 2 deletions cmd/oras/internal/display/status/tty.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func NewTTYAttachHandler(tty *os.File) AttachHandler {

// TTYPullHandler handles TTY status output for pull events.
type TTYPullHandler struct {
fetcher content.Fetcher
tty *os.File
tracked track.GraphTarget
}
Expand Down Expand Up @@ -138,6 +137,5 @@ func (ph *TTYPullHandler) TrackTarget(gt oras.GraphTarget) (oras.GraphTarget, er
return nil, err
}
ph.tracked = tracked
ph.fetcher = gt
return tracked, nil
}

0 comments on commit d839760

Please sign in to comment.