From 4121cf9df313ee111c01fde1f255d010c8d941cd Mon Sep 17 00:00:00 2001 From: Taras Madan Date: Fri, 14 Feb 2025 19:01:57 +0100 Subject: all: remove loop variables scoping --- pkg/csource/csource_test.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'pkg/csource/csource_test.go') diff --git a/pkg/csource/csource_test.go b/pkg/csource/csource_test.go index c97757d01..472e82225 100644 --- a/pkg/csource/csource_test.go +++ b/pkg/csource/csource_test.go @@ -38,7 +38,6 @@ func TestGenerate(t *testing.T) { t.Parallel() checked := make(map[string]bool) for _, target := range prog.AllTargets() { - target := target sysTarget := targets.Get(target.OS, target.Arch) if runtime.GOOS != sysTarget.BuildOS { continue @@ -114,7 +113,6 @@ func testTarget(t *testing.T, target *prog.Target, full bool) { // compilation time from 1.94s to 104.73s and memory consumption from 136MB to 8116MB. continue } - opts := opts t.Run(fmt.Sprintf("%v", opti), func(t *testing.T) { t.Parallel() testOne(t, p, opts) -- cgit mrf-deployment