Skip to content

Commit

Permalink
Fix wrong options key
Browse files Browse the repository at this point in the history
  • Loading branch information
Palladinium committed Nov 15, 2024
1 parent 40bd2fd commit d2880b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mock_redis/list_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ def lmpop(*keys, **options)
assert_listy(key)
end

modifier = options.is_a?(Hash) && options[:timeout]&.to_s&.downcase || 'left'
modifier = options.is_a?(Hash) && options[:modifier]&.to_s&.downcase || 'left'
count = (options.is_a?(Hash) && options[:count]) || 1

unless %w[left right].include?(modifier)
Expand Down

0 comments on commit d2880b4

Please sign in to comment.