Skip to content

Commit

Permalink
use semantic deepequal
Browse files Browse the repository at this point in the history
  • Loading branch information
vaikas committed Jul 16, 2020
1 parent 7d49638 commit de0ec02
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/reconciler/mtbroker/trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"context"
"errors"
"fmt"
"reflect"

"go.uber.org/zap"
corev1 "k8s.io/api/core/v1"
Expand Down Expand Up @@ -187,7 +186,7 @@ func (r *Reconciler) updateTriggerStatus(ctx context.Context, desired *eventingv
// Do the postprocessing for unnecessary trigger status changes.
groomConditionsTransitionTime(desired, trigger)

if reflect.DeepEqual(trigger.Status, desired.Status) {
if equality.Semantic.DeepEqual(trigger.Status, desired.Status) {
return trigger, nil
}

Expand Down

0 comments on commit de0ec02

Please sign in to comment.