chore: style fixes from go fix (#10846)

Just `go fix ./...`

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2026-08-05 20:23:22 +02:00
committed by GitHub
parent 946e2b83a1
commit 8ea09c0094
144 changed files with 211 additions and 315 deletions
+2 -2
View File
@@ -310,7 +310,7 @@ func TestWriteCompressed(t *testing.T) {
}
func TestLZ4Compression(t *testing.T) {
for i := 0; i < 10; i++ {
for i := range 10 {
dataLen := 150 + rand.Intn(150)
data := make([]byte, dataLen)
_, err := io.ReadFull(rand.Reader, data[100:])
@@ -716,7 +716,7 @@ func TestIndexIDString(t *testing.T) {
}
}
func closeAndWait(c interface{}, closers ...io.Closer) {
func closeAndWait(c any, closers ...io.Closer) {
for _, closer := range closers {
closer.Close()
}