Permalink
Browse files

minor: merge should be called with parens here

  • Loading branch information...
1 parent 0313acd commit b10d51cff0569086040c85d94e6aca9c05186f6e @TylerBrock TylerBrock committed Mar 14, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/mongo/util/read_preference.rb
@@ -44,7 +44,7 @@ def read_preference
def read_pool(read_preference_override={})
return primary_pool if mongos?
- read_pref = read_preference.merge read_preference_override
+ read_pref = read_preference.merge(read_preference_override)
if pinned_pool && pinned_pool[:read_preference] == read_pref
pool = pinned_pool[:pool]

0 comments on commit b10d51c

Please sign in to comment.