File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed
ethon/lib/opentelemetry/instrumentation/ethon
http_client/lib/opentelemetry/instrumentation/http_client
http/lib/opentelemetry/instrumentation/http
restclient/lib/opentelemetry/instrumentation/restclient Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ module Helpers
3333 # @api private
3434 def known_methods
3535 @known_methods ||= if ( env_methods = ENV . fetch ( 'OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS' , nil ) )
36- env_methods . split ( ',' ) . map ( & : strip) . map ( & : upcase) . freeze
36+ env_methods . split ( ',' ) . map { | x | x . strip . upcase } . freeze
3737 else
3838 DEFAULT_KNOWN_METHODS
3939 end
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ module Helpers
3333 # @api private
3434 def known_methods
3535 @known_methods ||= if ( env_methods = ENV . fetch ( 'OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS' , nil ) )
36- env_methods . split ( ',' ) . map ( & : strip) . map ( & : upcase) . freeze
36+ env_methods . split ( ',' ) . map { | x | x . strip . upcase } . freeze
3737 else
3838 DEFAULT_KNOWN_METHODS
3939 end
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ module Helpers
3333 # @api private
3434 def known_methods
3535 @known_methods ||= if ( env_methods = ENV . fetch ( 'OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS' , nil ) )
36- env_methods . split ( ',' ) . map ( & : strip) . map ( & : upcase) . freeze
36+ env_methods . split ( ',' ) . map { | x | x . strip . upcase } . freeze
3737 else
3838 DEFAULT_KNOWN_METHODS
3939 end
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ module Helpers
3333 # @api private
3434 def known_methods
3535 @known_methods ||= if ( env_methods = ENV . fetch ( 'OTEL_INSTRUMENTATION_HTTP_KNOWN_METHODS' , nil ) )
36- env_methods . split ( ',' ) . map ( & : strip) . map ( & : upcase) . freeze
36+ env_methods . split ( ',' ) . map { | x | x . strip . upcase } . freeze
3737 else
3838 DEFAULT_KNOWN_METHODS
3939 end
You can’t perform that action at this time.
0 commit comments