minor: cleanup (chriseppstein)

This commit is contained in:
Kyle Banker 2010-07-28 06:27:42 -04:00
parent 66e9508f61
commit 02e5b77219
1 changed files with 1 additions and 1 deletions

View File

@ -119,7 +119,7 @@ module Mongo
@logger = options[:logger] || nil
@options = options
should_connect = options[:connect].nil? ? true : options[:connect]
should_connect = options.fetch(:connect, true)
connect if should_connect
end