Skip to content

Commit 49e67ac

Browse files
committed
Test Runner: Minor styling refactor for CLIENT
1 parent 5fd3e7c commit 49e67ac

File tree

1 file changed

+5
-5
lines changed
  • elasticsearch-api/spec/yaml-test-runner

1 file changed

+5
-5
lines changed

elasticsearch-api/spec/yaml-test-runner/run.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@
4949
transport_options = {}
5050
end
5151

52-
if ENV['ES_API_KEY']
53-
CLIENT = Elasticsearch::Client.new(host: host, api_key: ENV['ES_API_KEY'], transport_options: transport_options)
54-
else
55-
CLIENT = Elasticsearch::Client.new(host: host, transport_options: transport_options)
56-
end
52+
CLIENT = if ENV['ES_API_KEY']
53+
Elasticsearch::Client.new(host: host, api_key: ENV['ES_API_KEY'], transport_options: transport_options)
54+
else
55+
Elasticsearch::Client.new(host: host, transport_options: transport_options)
56+
end
5757

5858

5959
tests_path = File.expand_path('./tmp', __dir__)

0 commit comments

Comments
 (0)