We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd3e7c commit 49e67acCopy full SHA for 49e67ac
elasticsearch-api/spec/yaml-test-runner/run.rb
@@ -49,11 +49,11 @@
49
transport_options = {}
50
end
51
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
+CLIENT = if ENV['ES_API_KEY']
+ Elasticsearch::Client.new(host: host, api_key: ENV['ES_API_KEY'], transport_options: transport_options)
+ else
+ Elasticsearch::Client.new(host: host, transport_options: transport_options)
+ end
57
58
59
tests_path = File.expand_path('./tmp', __dir__)
0 commit comments