Merge pull request #105117 from cmssczy/fix_useless_error_handling
handle error when parse Quantity Kubernetes-commit: 995a1c5abf48f9a3573f4bce4db54c381cdebe23
This commit is contained in:
commit
4a6a401a01
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue