mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-06 13:18:21 +00:00
Update to last versions of some very infrequently updated repos
Signed-off-by: Davanum Srinivas <davanum@gmail.com>
This commit is contained in:
13
vendor/github.com/exponent-io/jsonpath/decoder.go
generated
vendored
13
vendor/github.com/exponent-io/jsonpath/decoder.go
generated
vendored
@@ -39,16 +39,15 @@ func NewDecoder(r io.Reader) *Decoder {
|
||||
// Decoder is intended to be used with a stream of tokens. As a result it navigates forward only.
|
||||
func (d *Decoder) SeekTo(path ...interface{}) (bool, error) {
|
||||
|
||||
if len(path) == 0 {
|
||||
return len(d.path) == 0, nil
|
||||
}
|
||||
last := len(path) - 1
|
||||
if i, ok := path[last].(int); ok {
|
||||
path[last] = i - 1
|
||||
if len(path) > 0 {
|
||||
last := len(path) - 1
|
||||
if i, ok := path[last].(int); ok {
|
||||
path[last] = i - 1
|
||||
}
|
||||
}
|
||||
|
||||
for {
|
||||
if d.path.Equal(path) {
|
||||
if len(path) == len(d.path) && d.path.Equal(path) {
|
||||
return true, nil
|
||||
}
|
||||
_, err := d.Token()
|
||||
|
||||
Reference in New Issue
Block a user