File tree Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Expand file tree Collapse file tree 1 file changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -614,15 +614,14 @@ func customPreCompare(
614614 // Making this field a no-op if user does not set it.
615615 // This will ensure controller does not act on this field
616616 // if user is unaware of it.
617- if a .ko .Spec .ContributorInsights == nil {
618- return
619- }
620- // latestInsight will always be either ENABLED or DISABLED, since we requeue at readOne if its not
621- // either
622- desiredInsight , _ := ensureContibutorInsight (a )
623- latestInsight , _ := ensureContibutorInsight (b )
624- if desiredInsight != latestInsight {
625- delta .Add ("Spec.ContributorInsights" , a .ko .Spec .ContributorInsights , b .ko .Spec .ContributorInsights )
617+ if a .ko .Spec .ContributorInsights != nil {
618+ // latestInsight will always be either ENABLED or DISABLED, since we requeue at readOne if its not
619+ // either
620+ desiredInsight , _ := ensureContibutorInsight (a )
621+ latestInsight , _ := ensureContibutorInsight (b )
622+ if desiredInsight != latestInsight {
623+ delta .Add ("Spec.ContributorInsights" , a .ko .Spec .ContributorInsights , b .ko .Spec .ContributorInsights )
624+ }
626625 }
627626
628627}
You can’t perform that action at this time.
0 commit comments