Skip to content

Commit

Permalink
Merge pull request #950 from testwill/replace-loop
Browse files Browse the repository at this point in the history
chore: slice replace loop
  • Loading branch information
k8s-ci-robot committed Jul 24, 2023
2 parents faad2d9 + dcd3c5b commit c3460f2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions pkg/controller/controller_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5305,9 +5305,7 @@ func runDeleteTest(t *testing.T, k string, tc deleteTestcase) {
clientSetObjects = append(clientSetObjects, tc.storageClass)
}
if tc.secrets != nil {
for _, secret := range tc.secrets {
clientSetObjects = append(clientSetObjects, secret)
}
clientSetObjects = append(clientSetObjects, tc.secrets...)
}
clientSet = fakeclientset.NewSimpleClientset(clientSetObjects...)

Expand Down

0 comments on commit c3460f2

Please sign in to comment.