Skip to content

Commit

Permalink
Add missing return
Browse files Browse the repository at this point in the history
  • Loading branch information
Palladinium committed Nov 14, 2024
1 parent 54b770f commit 40bd2fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mock_redis/list_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,11 @@ def lmpop(*keys, **options)
record_count = llen(key)
next if record_count.zero?

[count, record_count].min.times.map do
values = [count, record_count].min.times.map do
modifier == 'left' ? with_list_at(key, &:shift) : with_list_at(key, &:pop)
end

return [key, values]
end

nil
Expand Down

0 comments on commit 40bd2fd

Please sign in to comment.