Skip to content

Commit 0e82805

Browse files
authored
refactor: omit unnecessary reassignment (#2584)
<!-- 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> --> The new version of Go has been optimized, and variables do not need to be reassigned. Inspired by helm/helm#31134 Signed-off-by: deepdring <deepdrink@icloud.com>
1 parent 94069b8 commit 0e82805

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

block/namespace_test.go

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,6 @@ func TestProcessNextDAHeaderAndData_MixedResults(t *testing.T) {
130130
}
131131

132132
for _, tt := range tests {
133-
tt := tt
134133
t.Run(tt.name, func(t *testing.T) {
135134
t.Parallel()
136135

@@ -234,7 +233,6 @@ func TestNamespaceMigration_Completion(t *testing.T) {
234233
}
235234

236235
for _, tt := range tests {
237-
tt := tt
238236
t.Run(tt.name, func(t *testing.T) {
239237
t.Parallel()
240238

@@ -426,7 +424,6 @@ func TestLegacyNamespaceDetection(t *testing.T) {
426424
}
427425

428426
for _, tt := range tests {
429-
tt := tt
430427
t.Run(tt.name, func(t *testing.T) {
431428
t.Parallel()
432429

0 commit comments

Comments
 (0)