Permalink
Browse files

fix syntax that broke ruby 1.8

  • Loading branch information...
erwaller committed Nov 18, 2011
1 parent d55596f commit 052cb8db8b9849bb850505ac4462d2fa9554ab3d
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/soulmate/matcher.rb
View
@@ -21,9 +21,9 @@ def matches_for_term(term, options = {})
ids = Soulmate.redis.zrevrange(cachekey, 0, options[:limit] - 1)
if ids.size > 0
- Soulmate.redis.hmget(database, *ids)
- .reject{ |r| r.nil? } # handle cached results for ids which have since been deleted
- .map { |r| MultiJson.decode(r) }
+ results = Soulmate.redis.hmget(database, *ids)
+ results = results.reject{ |r| r.nil? } # handle cached results for ids which have since been deleted
+ results.map { |r| MultiJson.decode(r) }
else
[]
end

0 comments on commit 052cb8d

Please sign in to comment.