diff options
| -rw-r--r-- | diffbytes.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/diffbytes.go b/diffbytes.go index 2c203a34..e92e3d5f 100644 --- a/diffbytes.go +++ b/diffbytes.go @@ -81,10 +81,7 @@ func DiffBytes(oldB, newB []byte) ([]BytesDiffChunk, error) { Vprev[offset+0] = x0 trace = append(trace, append([]int(nil), Vprev...)) - found := false - if x0 >= n && y0 >= m { - found = true - } + found := x0 >= n && y0 >= m for D := 1; D <= max && !found; D++ { V := make([]int, 2*max+1) |
