Skip to content

Commit 55f50bc

Browse files
committed
Cleanup
1 parent 4097a30 commit 55f50bc

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed

api-spec-testing/test_file/action.rb

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,16 @@ def execute(client, test = nil)
7575
end
7676
if ENV['QUIET'] == 'true'
7777
# todo: create a method on Elasticsearch::Client that can clone the client with new options
78-
Elasticsearch::Client.new(host: URL,
79-
transport_options: TRANSPORT_OPTIONS.merge( headers: headers))
78+
Elasticsearch::Client.new(
79+
host: URL,
80+
transport_options: TRANSPORT_OPTIONS.merge(headers: headers)
81+
)
8082
else
81-
Elasticsearch::Client.new(host: URL,
82-
tracer: Logger.new($stdout),
83-
transport_options: TRANSPORT_OPTIONS.merge( headers: headers))
83+
Elasticsearch::Client.new(
84+
host: URL,
85+
tracer: Logger.new($stdout),
86+
transport_options: TRANSPORT_OPTIONS.merge(headers: headers)
87+
)
8488
end
8589
when 'catch', 'warnings', 'allowed_warnings'
8690
client

elasticsearch-api/spec/rest_yaml_tests_helper.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@
5151

5252
SINGLE_TEST = if ENV['SINGLE_TEST'] && !ENV['SINGLE_TEST'].empty?
5353
test_target = ENV['SINGLE_TEST']
54-
path = File.expand_path(File.dirname('..'), '..')
5554

5655
if test_target.match?(/\.yml$/)
5756
["#{PROJECT_PATH}/../tmp/rest-api-spec/test/free/#{test_target}"]

elasticsearch-transport/lib/elasticsearch/transport/meta_header.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919

2020
module Elasticsearch
2121
module Transport
22-
2322
# Methods for the Elastic meta header used by Cloud.
2423
# X-Elastic-Client-Meta HTTP header which is used by Elastic Cloud and can be disabled when
2524
# instantiating the Client with the :enable_meta_header parameter set to `false`.

0 commit comments

Comments
 (0)