Skip to content

Commit 07f3816

Browse files
anandkumarjha54321qingyang-hu
authored andcommitted
GODRIVER-3257 Update client.go (mongodb#1681)
Co-authored-by: Qingyang Hu <[email protected]> (cherry picked from commit d43da19)
1 parent b524a7e commit 07f3816

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
@@ -206,10 +206,6 @@ func newClient(opts ...*options.ClientOptions) (*Client, error) {
206206
clientOpt.SetMaxPoolSize(defaultMaxPoolSize)
207207
}
208208

209-
if err != nil {
210-
return nil, err
211-
}
212-
213209
cfg, err := topology.NewConfig(clientOpt, client.clock)
214210
if err != nil {
215211
return nil, err

0 commit comments

Comments
 (0)