Skip to content

Commit

Permalink
removed extra field
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <[email protected]>
  • Loading branch information
Xiaoxuan Wang committed Feb 6, 2025
1 parent 52800e0 commit 0a023e2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions cmd/oras/internal/display/metadata/json/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ type PullHandler struct {
path string
pulled model.Pulled
out io.Writer
target *option.Target
root ocispec.Descriptor
}

Expand All @@ -53,8 +52,7 @@ func (ph *PullHandler) OnFilePulled(name string, outputDir string, desc ocispec.
}

// OnPulled implements metadata.PullHandler.
func (ph *PullHandler) OnPulled(target *option.Target, desc ocispec.Descriptor) {
ph.target = target
func (ph *PullHandler) OnPulled(_ *option.Target, desc ocispec.Descriptor) {
ph.root = desc
}

Expand Down
4 changes: 1 addition & 3 deletions cmd/oras/internal/display/metadata/template/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ type PullHandler struct {
path string
out io.Writer
pulled model.Pulled
target *option.Target
root ocispec.Descriptor
}

Expand All @@ -45,8 +44,7 @@ func NewPullHandler(out io.Writer, path string, template string) metadata.PullHa
}

// OnPulled implements metadata.PullHandler.
func (ph *PullHandler) OnPulled(target *option.Target, desc ocispec.Descriptor) {
ph.target = target
func (ph *PullHandler) OnPulled(_ *option.Target, desc ocispec.Descriptor) {
ph.root = desc
}

Expand Down

0 comments on commit 0a023e2

Please sign in to comment.