We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 128c747 commit 4d0656aCopy full SHA for 4d0656a
lib/redis_client/cluster/command.rb
@@ -123,7 +123,7 @@ def determine_first_key_position(command) # rubocop:disable Metrics/CyclomaticCo
123
124
def determine_optional_key_position(command, option_name)
125
command.each_with_index do |e, i|
126
- return i + 1 if e.to_s.downcase(:ascii) == option_name
+ return i + 1 if e.to_s.casecmp(option_name).zero?
127
end
128
129
0
0 commit comments