Skip to content

Commit 1242567

Browse files
PhilCogginsestolfo
andcommitted
[CLIENT] Update elasticsearch-transport/lib/elasticsearch/transport/client.rb
Co-Authored-By: estolfo <emily.s@elastic.co>
1 parent 49bd535 commit 1242567

File tree

1 file changed

+1
-1
lines changed
  • elasticsearch-transport/lib/elasticsearch/transport

1 file changed

+1
-1
lines changed

elasticsearch-transport/lib/elasticsearch/transport/client.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ class Client
105105
# @yield [faraday] Access and configure the `Faraday::Connection` instance directly with a block
106106
#
107107
def initialize(arguments={}, &block)
108-
@options = arguments.inject({}){|args,(k,v)| args[k.to_sym] = v; args}
108+
@options = arguments.each_with_object({}){ |(k,v), args| args[k.to_sym] = v }
109109
@arguments = @options
110110
@arguments[:logger] ||= @arguments[:log] ? DEFAULT_LOGGER.call() : nil
111111
@arguments[:tracer] ||= @arguments[:trace] ? DEFAULT_TRACER.call() : nil

0 commit comments

Comments
 (0)