Skip to content
This repository has been archived by the owner on Apr 12, 2022. It is now read-only.

Commit

Permalink
fix syntax that broke ruby 1.8
Browse files Browse the repository at this point in the history
  • Loading branch information
erwaller committed Nov 18, 2011
1 parent d55596f commit 052cb8d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/soulmate/matcher.rb
Expand Up @@ -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
Expand Down

0 comments on commit 052cb8d

Please sign in to comment.