Skip to content

Commit a9eb5f0

Browse files
committed
fix: rm useless code
Signed-off-by: zongz <[email protected]>
1 parent df37c29 commit a9eb5f0

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

internal/controller/kclrun_controller.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -363,10 +363,6 @@ func (r *KCLRunReconciler) Reconcile(ctx context.Context, req ctrl.Request) (res
363363
return ctrl.Result{}, fmt.Errorf("failed to build kube client: %w", err)
364364
}
365365

366-
if err != nil {
367-
conditions.MarkFalse(obj, meta.ReadyCondition, "RESTClientError", "%s", err)
368-
return ctrl.Result{}, err
369-
}
370366
// Remove any stale corresponding Ready=False condition with Unknown.
371367
if conditions.HasAnyReason(obj, meta.ReadyCondition, "RESTClientError") {
372368
conditions.MarkUnknown(obj, meta.ReadyCondition, meta.ProgressingReason, "reconciliation in progress")

0 commit comments

Comments
 (0)