mirror of
https://github.com/optim-enterprises-bv/kubernetes.git
synced 2025-11-02 19:28:16 +00:00
bump(github.com/evanphx/json-patch): 94e38aa1586e8a6c8a75770bddf5ff84c48a106b
This commit is contained in:
4
vendor/github.com/evanphx/json-patch/patch.go
generated
vendored
4
vendor/github.com/evanphx/json-patch/patch.go
generated
vendored
@@ -397,7 +397,9 @@ func (d *partialArray) add(key string, val *lazyNode) error {
|
||||
}
|
||||
idx = len(ary) - idx
|
||||
}
|
||||
|
||||
if idx < 0 || idx >= len(ary) || idx > len(cur) {
|
||||
return fmt.Errorf("Unable to access invalid index: %d", idx)
|
||||
}
|
||||
copy(ary[0:idx], cur[0:idx])
|
||||
ary[idx] = val
|
||||
copy(ary[idx+1:], cur[idx:])
|
||||
|
||||
Reference in New Issue
Block a user