Merge pull request #105117 from cmssczy/fix_useless_error_handling

handle error when parse Quantity
This commit is contained in:
Kubernetes Prow Robot 2021-09-29 15:34:44 -07:00 committed by GitHub
commit 995a1c5abf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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
}