mirror of
https://github.com/coder/coder.git
synced 2025-07-12 00:14:10 +00:00
chore: remove unnecessary redeclarations in for loops (#18440)
This commit is contained in:
@ -486,8 +486,6 @@ func TestCalculateAutoStop(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
|
||||
t.Run(c.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@ -622,7 +620,6 @@ func TestFindWeek(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, tz := range timezones {
|
||||
tz := tz
|
||||
t.Run("Loc/"+tz, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
@ -141,7 +141,6 @@ func Test_Weekly(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, testCase := range testCases {
|
||||
testCase := testCase
|
||||
t.Run(testCase.name, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
actual, err := cron.Weekly(testCase.spec)
|
||||
|
Reference in New Issue
Block a user