Skip to content

Commit 5bf596c

Browse files
rifeplightcalbera
andauthored
refactor: omit unnecessary reassignment (#2994)
Signed-off-by: rifeplight <[email protected]> Co-authored-by: Cal Bera <[email protected]>
1 parent 0aecf84 commit 5bf596c

11 files changed

+0
-13
lines changed

consensus-types/types/consolidation_request_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@ func TestConsolidationRequest_ValidValuesSSZ(t *testing.T) {
113113
}
114114

115115
for _, tc := range testCases {
116-
tc := tc // capture range variable
117116
t.Run(tc.name, func(t *testing.T) {
118117
t.Parallel()
119118

consensus-types/types/deposit_request_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,6 @@ func TestDepositRequest_ValidValuesSSZ(t *testing.T) {
169169
}
170170

171171
for _, tc := range testCases {
172-
tc := tc // capture range variable
173172
t.Run(tc.name, func(t *testing.T) {
174173
t.Parallel()
175174

@@ -322,7 +321,6 @@ func TestDepositRequests_ValidValuesSSZ(t *testing.T) {
322321
}
323322

324323
for _, tc := range testCases {
325-
tc := tc // capture range variable
326324
t.Run(tc.name, func(t *testing.T) {
327325
t.Parallel()
328326

consensus-types/types/execution_requests_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,6 @@ func TestExecutionRequests_ValidValuesSSZ(t *testing.T) {
211211
}
212212

213213
for _, tc := range testCases {
214-
tc := tc // capture range variable
215214
t.Run(tc.name, func(t *testing.T) {
216215
t.Parallel()
217216

consensus-types/types/pending_partial_withdrawal_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ func TestPendingPartialWithdrawal_ValidValuesSSZ(t *testing.T) {
7171
}
7272

7373
for _, tc := range testCases {
74-
tc := tc // capture range variable
7574
t.Run(tc.name, func(t *testing.T) {
7675
t.Parallel()
7776

@@ -183,7 +182,6 @@ func TestPendingPartialWithdrawals_ValidValuesSSZ(t *testing.T) {
183182
}
184183

185184
for _, tc := range testCases {
186-
tc := tc // capture range variable
187185
t.Run(tc.name, func(t *testing.T) {
188186
t.Parallel()
189187

consensus-types/types/withdrawals_request_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,6 @@ func TestWithdrawalRequest_ValidValuesSSZ(t *testing.T) {
111111
}
112112

113113
for _, tc := range testCases {
114-
tc := tc // capture range variable
115114
t.Run(tc.name, func(t *testing.T) {
116115
t.Parallel()
117116

node-api/handlers/beacon/blob_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,6 @@ func TestGetBlobSidecars(t *testing.T) {
103103
}
104104

105105
for _, tc := range testCases {
106-
tc := tc // capture range variable
107106
t.Run(tc.name, func(t *testing.T) {
108107
t.Parallel()
109108

node-api/handlers/beacon/randao_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ func TestGetRandao(t *testing.T) {
126126
}
127127

128128
for _, tc := range testCases {
129-
tc := tc // capture range variable
130129
t.Run(tc.name, func(t *testing.T) {
131130
// setup test
132131
backend := mocks.NewBackend(t)

node-api/handlers/beacon/validators_balances_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,6 @@ func TestGetStateValidatorBalances(t *testing.T) {
208208
}
209209

210210
for _, tc := range testCases {
211-
tc := tc // capture range variable
212211
t.Run(tc.name, func(t *testing.T) {
213212
// setup test
214213
backend := mocks.NewBackend(t)

node-api/handlers/beacon/validators_filters_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ func TestFilterValidators(t *testing.T) {
306306
}
307307

308308
for _, tc := range testCases {
309-
tc := tc // capture range variable
310309
t.Run(tc.name, func(t *testing.T) {
311310
// setup test
312311
backend := mocks.NewBackend(t)

node-api/handlers/beacon/validators_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,6 @@ func TestGetValidator(t *testing.T) {
140140
}
141141

142142
for _, tc := range testCases {
143-
tc := tc // capture range variable
144143
t.Run(tc.name, func(t *testing.T) {
145144
// setup test
146145
backend := mocks.NewBackend(t)

0 commit comments

Comments
 (0)