handle error when parse Quantity

This commit is contained in:
caozhiyuan 2021-09-18 15:05:21 +08:00
parent a73f45dd96
commit b9d7584c3a

View File

@ -277,7 +277,7 @@ func isLess(i, j reflect.Value) (bool, error) {
if err != nil {
return sortorder.NaturalLess(itype, jtype), nil
}
jtypeQuantity, _ := resource.ParseQuantity(jtype)
jtypeQuantity, err := resource.ParseQuantity(jtype)
if err != nil {
return sortorder.NaturalLess(itype, jtype), nil
}