Skip to content

Commit

Permalink
refinement
Browse files Browse the repository at this point in the history
Signed-off-by: Xiaoxuan Wang <xiaoxuanwang@microsoft.com>
  • Loading branch information
Xiaoxuan Wang committed Sep 25, 2024
1 parent a9b1164 commit 4d144be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cmd/oras/root/manifest/index/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ func updateIndex(cmd *cobra.Command, opts updateOptions) error {
if err != nil {
return err
}
manifests, err := removeManifests(ctx, displayStatus, index.Manifests, target, opts)
manifests, err := removeManifests(displayStatus, index.Manifests, target, opts)
if err != nil {
return err
}
Expand Down Expand Up @@ -231,7 +231,7 @@ func mergeIndexes(ctx context.Context, handler status.ManifestIndexUpdateHandler
return manifests, nil
}

func removeManifests(ctx context.Context, handler status.ManifestIndexUpdateHandler, manifests []ocispec.Descriptor, target oras.ReadOnlyTarget, opts updateOptions) ([]ocispec.Descriptor, error) {
func removeManifests(handler status.ManifestIndexUpdateHandler, manifests []ocispec.Descriptor, target oras.ReadOnlyTarget, opts updateOptions) ([]ocispec.Descriptor, error) {
// create a set of digests to speed up the remove
digestToRemove := make(map[digest.Digest]bool)
for _, manifestRef := range opts.removeArguments {
Expand Down

0 comments on commit 4d144be

Please sign in to comment.