minor: removed redundant code from uri_parser configure connect method
This commit is contained in:
parent
90e35d3137
commit
6ae5dbd37c
|
@ -215,10 +215,6 @@ module Mongo
|
||||||
end
|
end
|
||||||
|
|
||||||
def configure_connect
|
def configure_connect
|
||||||
if @nodes.length > 1 && !@connect
|
|
||||||
@connect = 'replicaset'
|
|
||||||
end
|
|
||||||
|
|
||||||
if !@connect
|
if !@connect
|
||||||
if @nodes.length > 1
|
if @nodes.length > 1
|
||||||
@connect = 'replicaset'
|
@connect = 'replicaset'
|
||||||
|
|
Loading…
Reference in New Issue