Apply go fix -minmax ./...

This commit is contained in:
Michael Eischer committed 2026-07-22 22:25:56 +02:00
1 parent 0e4f288e83
commit 8ed263c6dd
4 files changed
+4 -17

No files matched your search

@@ -132,10 +132,7 @@ func TestReadRecords(t *testing.T) {
testReadRecords := func(dataSize, entryCount, totalRecords int) {
totalHeader := rtest.Random(0, totalRecords*int(entrySize)+crypto.Extension)
bufSize := entryCount*int(entrySize) + crypto.Extension
off := len(totalHeader) - bufSize
if off < 0 {
off = 0
}
off := max(len(totalHeader)-bufSize, 0)
expectedHeader := totalHeader[off:]
buf := &bytes.Buffer{}