@@ -90,7 +90,6 @@ func Test_isAllowedEnvVariable(t *testing.T) {
9090 },
9191 }
9292 for _ , tt := range tests {
93- tt := tt // Re-initializing variable so it is not changed while executing the closure below
9493 t .Run (tt .name , func (t * testing.T ) {
9594 t .Parallel ()
9695
@@ -126,7 +125,6 @@ func Test_getOutputBinaryPath(t *testing.T) {
126125 },
127126 }
128127 for _ , tt := range tests {
129- tt := tt // Re-initializing variable so it is not changed while executing the closure below
130128 t .Run (tt .name , func (t * testing.T ) {
131129 t .Parallel ()
132130
@@ -177,7 +175,6 @@ func Test_isAllowedArg(t *testing.T) {
177175 })
178176 }
179177 for _ , tt := range tests {
180- tt := tt // Re-initializing variable so it is not changed while executing the closure below
181178 t .Run (tt .name , func (t * testing.T ) {
182179 t .Parallel ()
183180
@@ -442,7 +439,6 @@ func Test_generateOutputFilename(t *testing.T) {
442439 }
443440
444441 for _ , tt := range tests {
445- tt := tt // Re-initializing variable so it is not changed while executing the closure below
446442 t .Run (tt .name , func (t * testing.T ) {
447443 // Note: disable parallelism to avoid env variable clobbering between tests.
448444 // t.Parallel()
@@ -595,7 +591,6 @@ func Test_SetArgEnvVariables(t *testing.T) {
595591 }
596592
597593 for _ , tt := range tests {
598- tt := tt // Re-initializing variable so it is not changed while executing the closure below
599594 t .Run (tt .name , func (t * testing.T ) {
600595 t .Parallel ()
601596
@@ -704,7 +699,6 @@ func Test_generateEnvVariables(t *testing.T) {
704699 }
705700
706701 for _ , tt := range tests {
707- tt := tt // Re-initializing variable so it is not changed while executing the closure below
708702 t .Run (tt .name , func (t * testing.T ) {
709703 t .Parallel ()
710704
@@ -862,7 +856,6 @@ func Test_generateLdflags(t *testing.T) {
862856 }
863857
864858 for _ , tt := range tests {
865- tt := tt // Re-initializing variable so it is not changed while executing the closure below
866859 t .Run (tt .name , func (t * testing.T ) {
867860 // Disable to avoid env clobbering between tests.
868861 // t.Parallel()
@@ -954,7 +947,6 @@ func Test_generateFlags(t *testing.T) {
954947 }
955948
956949 for _ , tt := range tests {
957- tt := tt // Re-initializing variable so it is not changed while executing the closure below
958950 t .Run (tt .name , func (t * testing.T ) {
959951 t .Parallel ()
960952
@@ -1024,7 +1016,6 @@ func Test_generateCommand(t *testing.T) {
10241016 }
10251017
10261018 for _ , tt := range tests {
1027- tt := tt // Re-initializing variable so it is not changed while executing the closure below
10281019 t .Run (tt .name , func (t * testing.T ) {
10291020 t .Parallel ()
10301021
0 commit comments