Compare commits
1 commit
master
...
fix/patch/
Author | SHA1 | Date | |
---|---|---|---|
8a58ac120f |
1 changed files with 4 additions and 4 deletions
|
@ -176,10 +176,10 @@ func (x *objectPatcher) PatchPayload(_ context.Context, rng *object.Range, paylo
|
|||
}
|
||||
if n == 0 {
|
||||
if patchIter == 0 {
|
||||
if rng.GetLength() == 0 {
|
||||
x.err = errors.New("zero-length empty payload patch can't be applied")
|
||||
return false
|
||||
}
|
||||
// if rng.GetLength() == 0 {
|
||||
// x.err = errors.New("zero-length empty payload patch can't be applied")
|
||||
// return false
|
||||
// }
|
||||
if !x.patch(&object.Patch{
|
||||
Address: x.addr,
|
||||
PayloadPatch: &object.PayloadPatch{
|
||||
|
|
Loading…
Add table
Reference in a new issue