Skip to content

Commit a2b7838

Browse files
committed
fix lint
1 parent 69f2465 commit a2b7838

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

internal/controller/consumer_controller.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,7 @@ func (r *ConsumerReconciler) Reconcile(ctx context.Context, req ctrl.Request) (c
236236
statusErr = err
237237
}
238238

239-
if err := r.updateStatus(consumer, statusErr); err != nil {
240-
return ctrl.Result{}, err
241-
}
239+
r.updateStatus(consumer, statusErr)
242240

243241
return ctrl.Result{}, nil
244242
}
@@ -273,13 +271,13 @@ func (r *ConsumerReconciler) processSpec(ctx context.Context, tctx *provider.Tra
273271
return nil
274272
}
275273

276-
func (r *ConsumerReconciler) updateStatus(consumer *v1alpha1.Consumer, err error) error {
274+
func (r *ConsumerReconciler) updateStatus(consumer *v1alpha1.Consumer, err error) {
277275
condition := NewCondition(consumer.Generation, true, "Successfully")
278276
if err != nil {
279277
condition = NewCondition(consumer.Generation, false, err.Error())
280278
}
281279
if !VerifyConditions(&consumer.Status.Conditions, condition) {
282-
return nil
280+
return
283281
}
284282
meta.SetStatusCondition(&consumer.Status.Conditions, condition)
285283

@@ -296,7 +294,6 @@ func (r *ConsumerReconciler) updateStatus(consumer *v1alpha1.Consumer, err error
296294
return t
297295
}),
298296
})
299-
return nil
300297
}
301298

302299
func (r *ConsumerReconciler) getGateway(ctx context.Context, consumer *v1alpha1.Consumer) (*gatewayv1.Gateway, error) {

0 commit comments

Comments
 (0)