minor: cleanup (chriseppstein)
This commit is contained in:
parent
66e9508f61
commit
02e5b77219
|
@ -119,7 +119,7 @@ module Mongo
|
||||||
@logger = options[:logger] || nil
|
@logger = options[:logger] || nil
|
||||||
@options = options
|
@options = options
|
||||||
|
|
||||||
should_connect = options[:connect].nil? ? true : options[:connect]
|
should_connect = options.fetch(:connect, true)
|
||||||
connect if should_connect
|
connect if should_connect
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue