From 2fc7477d8316c668b21e4bc3c520a8e6713181e4 Mon Sep 17 00:00:00 2001 From: James Harris Date: Sat, 2 Mar 2024 08:48:25 +1000 Subject: [PATCH] Remove unnecessary loop variable capture (as of Go v1.22). --- journal/test.go | 1 - 1 file changed, 1 deletion(-) diff --git a/journal/test.go b/journal/test.go index 6b91b9e..f3305f1 100644 --- a/journal/test.go +++ b/journal/test.go @@ -131,7 +131,6 @@ func RunTests( } for _, c := range cases { - c := c // capture loop variable t.Run(c.Desc, func(t *testing.T) { t.Parallel()