Skip to content

Commit

Permalink
ir: Remove intermediate option variable
Browse files Browse the repository at this point in the history
It used to store flexible number of options but now is useless after some
changes.

Signed-off-by: Pavel Karpy <[email protected]>
  • Loading branch information
notimetoname committed Jun 26, 2023
1 parent 2ccb541 commit 33ddd78
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions pkg/innerring/innerring.go
Original file line number Diff line number Diff line change
Expand Up @@ -539,13 +539,7 @@ func New(ctx context.Context, log *logger.Logger, cfg *viper.Viper, errChan chan
return nil, err
}

// form morph container client's options
morphCnrOpts := make([]cntClient.Option, 0, 3)
morphCnrOpts = append(morphCnrOpts,
cntClient.AsAlphabet(),
)

cnrClient, err := cntClient.NewFromMorph(server.morphClient, server.contracts.container, 0, morphCnrOpts...)
cnrClient, err := cntClient.NewFromMorph(server.morphClient, server.contracts.container, 0, cntClient.AsAlphabet())
if err != nil {
return nil, err
}
Expand Down

0 comments on commit 33ddd78

Please sign in to comment.