Skip to content

Commit 4c0236a

Browse files
committed
remove useless conditions sorting
1 parent 1bc86a0 commit 4c0236a

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

pkg/controller/conditions/conditions.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,6 @@ func (r *Manager) ClearCondition(t string) error {
172172
return nil
173173
}
174174

175-
slices.SortFunc(conditions, func(a, b common.Condition) int {
176-
return strings.Compare(a.Type, b.Type)
177-
})
178-
179175
r.accessor.SetConditions(conditions)
180176
r.RecomputeHappiness(t)
181177

0 commit comments

Comments
 (0)