From b907a938ee3ed1fa9735859d4ad8d7ccbc6df1a5 Mon Sep 17 00:00:00 2001 From: PatrickMenoti <82882574+PatrickMenoti@users.noreply.github.com> Date: Tue, 16 Jul 2024 10:39:42 -0300 Subject: [PATCH] refactor: remove fmt.Println used for debugging --- pkg/cmd/delete/edge_storage/bucket/bucket.go | 1 - pkg/cmd/purge/requests.go | 2 -- 2 files changed, 3 deletions(-) diff --git a/pkg/cmd/delete/edge_storage/bucket/bucket.go b/pkg/cmd/delete/edge_storage/bucket/bucket.go index 755abca58..4a3ecb9b1 100644 --- a/pkg/cmd/delete/edge_storage/bucket/bucket.go +++ b/pkg/cmd/delete/edge_storage/bucket/bucket.go @@ -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) { diff --git a/pkg/cmd/purge/requests.go b/pkg/cmd/purge/requests.go index ce30d853b..df7091c17 100644 --- a/pkg/cmd/purge/requests.go +++ b/pkg/cmd/purge/requests.go @@ -2,7 +2,6 @@ package purge import ( "context" - "fmt" "strings" "github.com/AlecAivazis/survey/v2" @@ -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 }