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/build/build_test.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'pkg/build') diff --git a/pkg/build/build_test.go b/pkg/build/build_test.go index 6aa9d9216..7491a113c 100644 --- a/pkg/build/build_test.go +++ b/pkg/build/build_test.go @@ -17,7 +17,6 @@ import ( func TestCompilerIdentity(t *testing.T) { t.Parallel() for _, compiler := range []string{"gcc", "clang", "bazel"} { - compiler := compiler t.Run(compiler, func(t *testing.T) { t.Parallel() if _, err := exec.LookPath(compiler); err != nil { @@ -42,7 +41,6 @@ func TestCompilerIdentity(t *testing.T) { func TestExtractCauseInner(t *testing.T) { for i, test := range rootCauseTests { - test := test t.Run(fmt.Sprint(i), func(t *testing.T) { reason, file := extractCauseInner([]byte(test.e), test.src) if test.reason != string(reason) { -- cgit mrf-deployment