mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-27 13:37:30 +00:00
Merge pull request #73179 from tedyu/master
Correct message for step value check
This commit is contained in:
commit
0c81d1a1b5
@ -278,7 +278,7 @@ func (j *JSONPath) evalArray(input []reflect.Value, node *ArrayNode) ([]reflect.
|
|||||||
step := 1
|
step := 1
|
||||||
if params[2].Known {
|
if params[2].Known {
|
||||||
if params[2].Value <= 0 {
|
if params[2].Value <= 0 {
|
||||||
return input, fmt.Errorf("step must be >= 0")
|
return input, fmt.Errorf("step must be > 0")
|
||||||
}
|
}
|
||||||
step = params[2].Value
|
step = params[2].Value
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user