*: modernize codebase with newer syntax / helpers (#4110)

Changes came from running
https://pkg.go.dev/golang.org/x/tools/gopls/internal/analysis/modernize
on the codebase.
This commit is contained in:
Derek Parker
2025-08-29 09:50:08 -04:00
committed by GitHub
parent 95e13db069
commit 61573cffb3
53 changed files with 231 additions and 290 deletions

View File

@ -42,7 +42,7 @@ func assertNoError(err error, t testing.TB, s string) {
func TestSplicedReader(t *testing.T) {
data := []byte{}
data2 := []byte{}
for i := 0; i < 100; i++ {
for i := range 100 {
data = append(data, byte(i))
data2 = append(data2, byte(i+100))
}