Skip to content

Commit

Permalink
refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
gediminasgu committed Jan 12, 2021
1 parent 6ae7dbb commit 76a030b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/dbnode/integration/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,11 +468,11 @@ func NewTestSetup(
for _, fn := range storageOptFns {
if fn != nil {
storageOpts = fn(storageOpts)
if storageOpts != nil && storageOpts.AdminClient() == nil {
storageOpts = storageOpts.SetAdminClient(adminClient)
}
}
}
if storageOpts != nil && storageOpts.AdminClient() == nil {
storageOpts = storageOpts.SetAdminClient(adminClient)
}

return &testSetup{
t: t,
Expand Down

0 comments on commit 76a030b

Please sign in to comment.