mirror of
https://github.com/kubernetes/kubectl.git
synced 2026-06-10 17:32:00 -04:00
handle error when parse Quantity
Kubernetes-commit: b9d7584c3a838d83c6c8c6e405907bf05addc850
This commit is contained in:
parent
2c81f86bd6
commit
0cf1a18bec
1 changed files with 1 additions and 1 deletions
|
|
@ -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 a new issue