lib/redis.rb in redis-4.0.3 vs lib/redis.rb in redis-4.1.0.beta1
- old
+ new
@@ -2934,11 +2934,15 @@
end
}
FloatifyPairs =
lambda { |result|
- result.each_slice(2).map do |member, score|
- [member, Floatify.call(score)]
+ if result.respond_to?(:each_slice)
+ result.each_slice(2).map do |member, score|
+ [member, Floatify.call(score)]
+ end
+ else
+ result
end
}
HashifyInfo =
lambda { |reply|