mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-23 11:50:44 +00:00
Merge pull request #105117 from cmssczy/fix_useless_error_handling
handle error when parse Quantity
This commit is contained in:
commit
995a1c5abf
@ -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
Block a user