k8s.io/kubernetes/staging/src/k8s.io/apimachinery/pkg/util/strategicpatch: Fix swallowed errors in normalizeSliceOrder()

This commit is contained in:
Lars Lehtonen 2017-09-27 19:16:49 -07:00
parent 03db535f90
commit 1bdc657425
No known key found for this signature in database
GPG Key ID: 8137D474EBCB04F2

View File

@ -515,6 +515,9 @@ func normalizeSliceOrder(toSort, order []interface{}, mergeKey string, kind refl
return nil, err
}
toSort, toDelete, err = extractToDeleteItems(toSort)
if err != nil {
return nil, err
}
}
sort.SliceStable(toSort, func(i, j int) bool {