Skip to content

Commit

Permalink
Better handling of empty stream response [redis#905]
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jun 19, 2020
1 parent 5071cf2 commit 9fd381b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/redis.rb
Expand Up @@ -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
}
Expand Down

0 comments on commit 9fd381b

Please sign in to comment.