mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-08-09 12:07:47 +00:00
k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/strategicpatch: Fix swallowed errors in normalizeSliceOrder()
This commit is contained in:
parent
03db535f90
commit
1bdc657425
@ -515,6 +515,9 @@ func normalizeSliceOrder(toSort, order []interface{}, mergeKey string, kind refl
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
toSort, toDelete, err = extractToDeleteItems(toSort)
|
toSort, toDelete, err = extractToDeleteItems(toSort)
|
||||||
|
if err != nil {
|
||||||
|
return nil, err
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
sort.SliceStable(toSort, func(i, j int) bool {
|
sort.SliceStable(toSort, func(i, j int) bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user