diff --git a/internal/controller/bucket/delete.go b/internal/controller/bucket/delete.go index fddb4d22..5934fc1a 100644 --- a/internal/controller/bucket/delete.go +++ b/internal/controller/bucket/delete.go @@ -120,13 +120,13 @@ func (c *external) Delete(ctx context.Context, mg resource.Managed) error { return err } - if deleteErr != nil { + if deleteErr != nil { //nolint:nestif // Multiple checks required. c.log.Info("Failed to delete bucket on one or more backends", "error", deleteErr.Error()) traces.SetAndRecordError(span, deleteErr) if errors.Is(deleteErr, rgw.ErrBucketNotEmpty) { c.log.Info("Cannot deleted non-empty bucket - this error will not be requeued", consts.KeyBucketName, bucket.Name) - // An error occured attempting to delete the bucket because it is not empty. + // An error occurred attempting to delete the bucket because it is not empty. // If this Delete operation was triggered because the Bucket CR was "Disabled", // we need to unset this value so as not to continue attempting Delete. // Otherwise we can return no error as we do not wish to requeue the Delete.