Skip to content

Commit

Permalink
minor: cleanup (chriseppstein)
Browse files Browse the repository at this point in the history
  • Loading branch information
banker committed Jul 28, 2010
1 parent 66e9508 commit 02e5b77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mongo/connection.rb
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def initialize(host=nil, port=nil, options={})
@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

Expand Down

0 comments on commit 02e5b77

Please sign in to comment.