Skip to content

Commit

Permalink
Update client.go
Browse files Browse the repository at this point in the history
Redundant error handling removed.
  • Loading branch information
anandkumarjha54321 authored Jun 19, 2024
1 parent fb39da8 commit 0df6291
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions mongo/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -209,10 +209,7 @@ func NewClient(opts ...*options.ClientOptions) (*Client, error) {
clientOpt.SetMaxPoolSize(defaultMaxPoolSize)
}

if err != nil {
return nil, err
}


cfg, err := topology.NewConfig(clientOpt, client.clock)
if err != nil {
return nil, err
Expand Down

0 comments on commit 0df6291

Please sign in to comment.