mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-12-01 13:53:55 +00:00
handle error when parse Quantity
This commit is contained in:
@@ -277,7 +277,7 @@ func isLess(i, j reflect.Value) (bool, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return sortorder.NaturalLess(itype, jtype), nil
|
return sortorder.NaturalLess(itype, jtype), nil
|
||||||
}
|
}
|
||||||
jtypeQuantity, _ := resource.ParseQuantity(jtype)
|
jtypeQuantity, err := resource.ParseQuantity(jtype)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return sortorder.NaturalLess(itype, jtype), nil
|
return sortorder.NaturalLess(itype, jtype), nil
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user