chore: remove unnecessary loop variable captures (#22180)

Since Go 1.22, the loop variable capture issue is resolved. Variables
declared by for loops are now per-iteration rather than per-loop, making
the 'v := v' pattern unnecessary.
This commit is contained in:
Danielle Maywood
2026-02-19 09:02:19 +00:00
committed by GitHub
parent d9ec892b9a
commit 92a6d6c2c0
25 changed files with 0 additions and 37 deletions
-2
View File
@@ -606,7 +606,6 @@ func TestWorkspaceAgentAppStatus_ActivityBump(t *testing.T) {
}
for _, tt := range tests {
tt := tt
t.Run(tt.name, func(t *testing.T) {
t.Parallel()
@@ -1920,7 +1919,6 @@ func TestWorkspaceAgentDeleteDevcontainer(t *testing.T) {
}
for _, tc := range tests {
tc := tc
t.Run(tc.name, func(t *testing.T) {
t.Parallel()