Skip to content

Commit 1547232

Browse files
authored
Merge pull request #172 from kcl-lang/rm-useless-code
chore: rm useless code
2 parents df37c29 + a9eb5f0 commit 1547232

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)