Fix lint errors

This commit is contained in:
世界
2026-05-14 22:53:22 +08:00
parent 4b55717612
commit 2c2e08e608
38 changed files with 284 additions and 333 deletions
@@ -532,7 +532,7 @@ func TestAppleTransportRoundTripHTTPS(t *testing.T) {
}
var normalizedValues []string
for _, value := range observed.values {
for _, part := range strings.Split(value, ",") {
for part := range strings.SplitSeq(value, ",") {
normalizedValues = append(normalizedValues, strings.TrimSpace(part))
}
}
@@ -687,7 +687,7 @@ func TestAppleTransportCancellationRecovery(t *testing.T) {
},
})
for index := 0; index < appleHTTPRecoveryLoops; index++ {
for index := range appleHTTPRecoveryLoops {
ctx, cancel := context.WithTimeout(context.Background(), 100*time.Millisecond)
request := newAppleHTTPRequestWithContext(t, ctx, http.MethodGet, server.URL("/block"), nil)
response, err := transport.RoundTrip(request)