mirror of
https://github.com/coder/coder.git
synced 2025-07-03 16:13:58 +00:00
chore: remove unnecessary redeclarations in for loops (#18440)
This commit is contained in:
@ -26,7 +26,6 @@ func TestStripCoderCookies(t *testing.T) {
|
||||
"coder_session_token=ok; oauth_state=wow; oauth_redirect=/",
|
||||
"",
|
||||
}} {
|
||||
tc := tc
|
||||
t.Run(tc.Input, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
require.Equal(t, tc.Output, httpapi.StripCoderCookies(tc.Input))
|
||||
|
@ -46,8 +46,6 @@ func TestDuration(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
|
||||
t.Run(c.expected, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@ -109,8 +107,6 @@ func TestDuration(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
|
||||
t.Run(c.value, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
@ -153,8 +149,6 @@ func TestDuration(t *testing.T) {
|
||||
}
|
||||
|
||||
for _, c := range cases {
|
||||
c := c
|
||||
|
||||
t.Run(c.value, func(t *testing.T) {
|
||||
t.Parallel()
|
||||
|
||||
|
Reference in New Issue
Block a user