From 6ae5dbd37c8a9db68aa561eeeb54ab53da945537 Mon Sep 17 00:00:00 2001 From: Tyler Brock Date: Sun, 29 Jan 2012 19:38:41 -0500 Subject: [PATCH] minor: removed redundant code from uri_parser configure connect method --- lib/mongo/util/uri_parser.rb | 4 ---- 1 file changed, 4 deletions(-) diff --git a/lib/mongo/util/uri_parser.rb b/lib/mongo/util/uri_parser.rb index 624be9c..0ed72c9 100644 --- a/lib/mongo/util/uri_parser.rb +++ b/lib/mongo/util/uri_parser.rb @@ -215,10 +215,6 @@ module Mongo end def configure_connect - if @nodes.length > 1 && !@connect - @connect = 'replicaset' - end - if !@connect if @nodes.length > 1 @connect = 'replicaset'