Skip to content

Commit

Permalink
chore: removed params not used
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwelbm committed May 23, 2024
1 parent 99f8484 commit e308357
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/cmd/delete/edge_storage/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (b *bucket) runE(cmd *cobra.Command, _ []string) error {
}
logger.FInfo(b.factory.IOStreams.Out, "Delete all objects from bucket\n")
logger.FInfo(b.factory.IOStreams.Out, "deleting objects...")
if err := deleteAllObjects(client, b, ctx, b.name, ""); err != nil {
if err := deleteAllObjects(client, ctx, b.name, ""); err != nil {
return err
}
err := client.DeleteBucket(ctx, b.name)
Expand Down Expand Up @@ -88,7 +88,7 @@ func (f *bucket) addFlags(flags *pflag.FlagSet) {
flags.BoolP("help", "h", false, msg.FLAG_HELP_DELETE_BUCKET)
}

func deleteAllObjects(client *api.Client, b *bucket, ctx context.Context, name, continuationToken string) error {
func deleteAllObjects(client *api.Client, ctx context.Context, name, continuationToken string) error {
objects, err := client.ListObject(ctx, name, &contracts.ListOptions{ContinuationToken: continuationToken})
if err != nil {
return err
Expand All @@ -100,7 +100,7 @@ func deleteAllObjects(client *api.Client, b *bucket, ctx context.Context, name,
return err
}
}
return deleteAllObjects(client, b, ctx, name, continuationToken)
return deleteAllObjects(client, ctx, name, continuationToken)
}
return nil
}

0 comments on commit e308357

Please sign in to comment.