lib/elasticsearch/transport/transport/base.rb in elasticsearch-transport-7.17.0 vs lib/elasticsearch/transport/transport/base.rb in elasticsearch-transport-7.17.1
- old
+ new
@@ -16,11 +16,10 @@
# under the License.
module Elasticsearch
module Transport
module Transport
-
# @abstract Module with common functionality for transport implementations.
#
module Base
include Loggable
@@ -429,10 +428,10 @@
client.headers[ACCEPT_ENCODING] = GZIP if use_compression?
client.headers.merge!(headers)
end
def find_value(hash, regex)
- key_value = hash.find { |k,v| k.to_s.downcase =~ regex }
+ key_value = hash.find { |k, _| k.to_s.downcase =~ regex }
if key_value
hash.delete(key_value[0])
key_value[1]
end
end