Skip to content

Commit

Permalink
fix warning
Browse files Browse the repository at this point in the history
Signed-off-by: Billy Zha <[email protected]>
  • Loading branch information
qweeah committed Aug 22, 2023
1 parent 6fcd346 commit aca52ff
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/oras/internal/option/target.go
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ func parseOCILayoutReference(raw string) (path string, ref string, err error) {
}

// NewTarget generates a new target based on opts.
func (opts *Target) NewTarget(common Common, warn func(...interface{})) (oras.GraphTarget, error) {
func (opts *Target) NewTarget(common Common, warn func(...any)) (oras.GraphTarget, error) {
switch opts.Type {
case TargetTypeOCILayout:
var err error
Expand Down Expand Up @@ -142,7 +142,7 @@ type ReadOnlyGraphTagFinderTarget interface {
}

// NewReadonlyTargets generates a new read only target based on opts.
func (opts *Target) NewReadonlyTarget(ctx context.Context, warn func(...interface{}), common Common) (ReadOnlyGraphTagFinderTarget, error) {
func (opts *Target) NewReadonlyTarget(ctx context.Context, warn func(...any), common Common) (ReadOnlyGraphTagFinderTarget, error) {
switch opts.Type {
case TargetTypeOCILayout:
var err error
Expand Down

0 comments on commit aca52ff

Please sign in to comment.