minor: cleanup

This commit is contained in:
Kyle Banker 2010-08-09 14:09:51 -04:00
parent 7bb59610b7
commit 9cd7377b00
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ module Mongo
if opts[:timeout] == false && !block_given?
raise ArgumentError, "Timeout can be set to false only when #find is invoked with a block."
end
timeout = block_given? ? (opts.delete(:timeout) || true) : true
timeout = block_given? ? opts.fetch(:timeout, true) : true
if hint
hint = normalize_hint_fields(hint)
else