Skip to content

Commit

Permalink
refactor: remove fmt.Println used for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
PatrickMenoti committed Jul 16, 2024
1 parent 23ba09a commit b907a93
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 3 deletions.
1 change: 0 additions & 1 deletion pkg/cmd/delete/edge_storage/bucket/bucket.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ func NewBucketCmd(delete *DeleteBucketCmd, f *cmdutil.Factory) *cobra.Command {

err = client.DeleteBucket(ctx, bucketName)
if err != nil {
fmt.Println(err.Error())
if msg.ERROR_NO_EMPTY_BUCKET == err.Error() {
if !forceDelete {
if !delete.ConfirmDelete(f.GlobalFlagAll, msg.ASK_NOT_EMPTY_BUCKET, false) {
Expand Down
2 changes: 0 additions & 2 deletions pkg/cmd/purge/requests.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package purge

import (
"context"
"fmt"
"strings"

"github.com/AlecAivazis/survey/v2"
Expand Down Expand Up @@ -36,7 +35,6 @@ func purgeUrls(urls []string, f *cmdutil.Factory) error {
clipurge := apipurge.NewClient(f.HttpClient, f.Config.GetString("api_url"), f.Config.GetString("token"))
err := clipurge.PurgeUrls(ctx, urls)
if err != nil {
fmt.Println(err.Error())
logger.Debug("Error while purging URLs", zap.Error(err))
return err
}
Expand Down

0 comments on commit b907a93

Please sign in to comment.