Skip to content

Commit

Permalink
Remove unnecessary checks.
Browse files Browse the repository at this point in the history
  • Loading branch information
djanowski committed Apr 28, 2010
1 parent e6b065f commit 6de11f2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions lib/redis/distributed.rb
Original file line number Diff line number Diff line change
Expand Up @@ -315,19 +315,11 @@ def zincrby(key, increment, member)
end

def zrange(key, start, stop, with_scores = false)
if with_scores
node_for(key).zrange(key, start, stop, "WITHSCORES")
else
node_for(key).zrange(key, start, stop)
end
node_for(key).zrange(key, start, stop, with_scores)
end

def zrevrange(key, start, stop, with_scores = false)
if with_scores
node_for(key).zrevrange(key, start, stop, "WITHSCORES")
else
node_for(key).zrevrange(key, start, stop)
end
node_for(key).zrevrange(key, start, stop, with_scores)
end

def zrangebyscore(key, min, max)
Expand Down

0 comments on commit 6de11f2

Please sign in to comment.