Remove unnecessary copies of loop variables (#28138)
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
b6bd92f90e
Коммит
d9e47522a0
@@ -272,7 +272,6 @@ func TestRoundOffToZeroes(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
tc := tc
|
||||
t.Run(tc.desc, func(t *testing.T) {
|
||||
res := RoundOffToZeroes(tc.n)
|
||||
assert.Equal(t, tc.expected, res)
|
||||
@@ -427,7 +426,6 @@ func TestRoundOffToZeroesResolution(t *testing.T) {
|
||||
},
|
||||
}
|
||||
for _, tc := range testCases {
|
||||
tc := tc
|
||||
t.Run(tc.desc, func(t *testing.T) {
|
||||
res := RoundOffToZeroesResolution(tc.n, tc.minResolution)
|
||||
assert.Equal(t, tc.expected, res)
|
||||
|
||||
Ссылка в новой задаче
Block a user