Skip to content

Commit bab058d

Browse files
authored
refactor: omit unnecessary reassignment (#2892)
<!-- Please read and fill out this form before submitting your PR. Please make sure you have reviewed our contributors guide before submitting your first PR. NOTE: PR titles should follow semantic commits: https://www.conventionalcommits.org/en/v1.0.0/ --> ## Overview <!-- Please provide an explanation of the PR, including the appropriate context, background, goal, and rationale. If there is an issue with this information, please provide a tl;dr and link the issue. Ex: Closes #<issue number> --> Inspired by #2584 and replace all case. The new version of Go has been optimized, and variables do not need to be reassigned. For more info: https://tip.golang.org/wiki/LoopvarExperiment#does-this-mean-i-dont-have-to-write-x--x-in-my-loops-anymore Signed-off-by: rifeplight <[email protected]>
1 parent f8a2cdb commit bab058d

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

execution/evm/execution_status_test.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@ func TestValidatePayloadStatus(t *testing.T) {
6161
}
6262

6363
for _, tt := range tests {
64-
tt := tt
6564
t.Run(tt.name, func(t *testing.T) {
6665
t.Parallel()
6766

@@ -124,7 +123,6 @@ func TestRetryWithBackoffOnPayloadStatus(t *testing.T) {
124123
}
125124

126125
for _, tt := range tests {
127-
tt := tt
128126
t.Run(tt.name, func(t *testing.T) {
129127
t.Parallel()
130128

0 commit comments

Comments
 (0)