Remove unnecessary copies of loop variables (#28138)

Этот коммит содержится в:
Ben Schumacher
2024-09-11 16:51:30 +02:00
коммит произвёл GitHub
родитель b6bd92f90e
Коммит d9e47522a0
13 изменённых файлов: 0 добавлений и 24 удалений

Просмотреть файл

@@ -204,7 +204,6 @@ func TestCommandResponseFromJSON(t *testing.T) {
}
for _, testCase := range testCases {
testCase := testCase
t.Run(testCase.Description, func(t *testing.T) {
t.Parallel()

Просмотреть файл

@@ -963,7 +963,6 @@ func TestNowhereNil(t *testing.T) {
}
for _, testCase := range testCases {
testCase := testCase
t.Run(testCase.Description, func(t *testing.T) {
defer func() {
if r := recover(); r != nil {
@@ -1196,7 +1195,6 @@ func TestIsValidHTTPURL(t *testing.T) {
}
for _, testCase := range testCases {
testCase := testCase
t.Run(testCase.Description, func(t *testing.T) {
defer func() {
if r := recover(); r != nil {