lib/redis/commands.rb in redis-5.0.5 vs lib/redis/commands.rb in redis-5.0.6
- old
+ new
@@ -117,10 +117,12 @@
}
HashifyStreamAutoclaim = lambda { |reply|
{
'next' => reply[0],
- 'entries' => reply[1].map { |entry| [entry[0], entry[1].each_slice(2).to_h] }
+ 'entries' => reply[1].compact.map do |entry, values|
+ [entry, values.each_slice(2)&.to_h]
+ end
}
}
HashifyStreamAutoclaimJustId = lambda { |reply|
{