diff --git a/lib/redis.rb b/lib/redis.rb index c2af65be8..1e9a231d3 100644 --- a/lib/redis.rb +++ b/lib/redis.rb @@ -3427,9 +3427,7 @@ def method_missing(command, *args) # rubocop:disable Style/MissingRespondToMissi private_constant :EMPTY_STREAM_RESPONSE HashifyStreamEntries = lambda { |reply| - return [] if reply == EMPTY_STREAM_RESPONSE - - reply.map do |entry_id, values| + reply.compact.map do |entry_id, values| [entry_id, values.each_slice(2).to_h] end }