Skip to content

Commit d43da19

Browse files
GODRIVER-3257 Update client.go (#1681)
Co-authored-by: Qingyang Hu <[email protected]>
1 parent fb39da8 commit d43da19

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

mongo/client.go

-4
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,6 @@ func NewClient(opts ...*options.ClientOptions) (*Client, error) {
209209
clientOpt.SetMaxPoolSize(defaultMaxPoolSize)
210210
}
211211

212-
if err != nil {
213-
return nil, err
214-
}
215-
216212
cfg, err := topology.NewConfig(clientOpt, client.clock)
217213
if err != nil {
218214
return nil, err

0 commit comments

Comments
 (0)