diff options
| author | 2025-11-21 08:00:00 +0800 | |
|---|---|---|
| committer | 2025-11-21 08:00:00 +0800 | |
| commit | 9457b461b81aee0215bb46024a935e76fc6abf3a (patch) | |
| tree | c70330cab40c522810079f42560c68e6fe8206bc | |
| parent | Add DiffBytes (diff) | |
| signature | No signature | |
diffbytes: Fix linter error on redundant if statement
| -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) |
