Skip to content

Commit

Permalink
fix(lint): fix funlen finding
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Burgazzoli <[email protected]>
  • Loading branch information
lburgazzoli committed Sep 25, 2024
1 parent 3ed62e2 commit aaf689f
Showing 1 changed file with 1 addition and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ import (

"github.com/dapr/kubernetes-operator/pkg/conditions"

k8serrors "k8s.io/apimachinery/pkg/api/errors"
"k8s.io/apimachinery/pkg/api/meta"
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/types"
Expand Down Expand Up @@ -122,21 +121,14 @@ func (r *Reconciler) Reconcile(ctx context.Context, res *daprApi.DaprInstance) (
return rr.Resource.Status.Conditions[i].Type < rr.Resource.Status.Conditions[j].Type
})

//
// Update status
//

err = r.Client().ApplyStatus(
ctx,
rr.Resource,
client.ForceOwnership,
client.FieldOwner(controller.FieldManager),
)

if err != nil && k8serrors.IsConflict(err) {
l.Info(err.Error())
return ctrl.Result{Requeue: true}, nil
} else if err != nil {
if err != nil {
errs = append(errs, err)
}

Expand Down

0 comments on commit aaf689f

Please sign in to comment.