From 25a043b5087e83b4ed180eaebafd01c9258c40a9 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Fri, 28 Aug 2020 08:13:35 -0700 Subject: [PATCH] continue to remove content upon any error (#3383) --- cmd/rb-main.go | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/cmd/rb-main.go b/cmd/rb-main.go index 030a41c8..9a09d6d0 100644 --- a/cmd/rb-main.go +++ b/cmd/rb-main.go @@ -167,13 +167,7 @@ func deleteBucket(ctx context.Context, url string) *probe.Error { }() for perr := range errorCh { - switch perr.ToGoError().(type) { - case PathInsufficientPermission: - errorIf(perr.Trace(url), "Failed to remove `"+url+"`.") - // Ignore Permission error. - continue - } - return perr + errorIf(perr.Trace(url), "Failed to remove `"+url+"`, continuing..") } return nil }