Skip to content

Commit

Permalink
remove nn
Browse files Browse the repository at this point in the history
  • Loading branch information
nolancon committed Dec 17, 2024
1 parent 28e9469 commit 4cdf742
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/controller/bucket/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,9 @@ func (c *external) updateBucketCR(ctx context.Context, bucket *v1alpha1.Bucket,
ctx, span := otel.Tracer("").Start(ctx, "bucket.external.updateBucketCR")
defer span.End()

nn := types.NamespacedName{Name: bucket.GetName()}

for _, cb := range callbacks {
err := retry.OnError(retry.DefaultRetry, resource.IsAPIError, func() error {
if err := c.kubeClient.Get(ctx, nn, bucket); err != nil {
if err := c.kubeClient.Get(ctx, types.NamespacedName{Name: bucket.GetName()}, bucket); err != nil {
return err
}
switch cb(bucket) {
Expand Down

0 comments on commit 4cdf742

Please sign in to comment.