Skip to content

Commit 9631ac9

Browse files
committed
[API] Autogenerated Rubocop changes
1 parent 11d4c93 commit 9631ac9

File tree

3 files changed

+13
-16
lines changed

3 files changed

+13
-16
lines changed

elasticsearch-api/lib/elasticsearch/api/actions/fleet/msearch.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,13 @@ def msearch(arguments = {})
6060
params = {}
6161

6262
if body.is_a?(Array) && body.any? { |d| d.has_key? :search }
63-
payload = body
64-
.each_with_object([]) do |item, sum|
65-
meta = item
66-
data = meta.delete(:search)
63+
payload = body.each_with_object([]) do |item, sum|
64+
meta = item
65+
data = meta.delete(:search)
6766

68-
sum << meta
69-
sum << data
70-
end
71-
.map { |item| Elasticsearch::API.serializer.dump(item) }
67+
sum << meta
68+
sum << data
69+
end.map { |item| Elasticsearch::API.serializer.dump(item) }
7270
payload << '' unless payload.empty?
7371
payload = payload.join("\n")
7472
elsif body.is_a?(Array)

elasticsearch-api/lib/elasticsearch/api/actions/indices/get_data_stream.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ module Actions
2828
# @option arguments [String] :expand_wildcards Whether wildcard expressions should get expanded to open or closed indices (default: open) (options: open, closed, hidden, none, all)
2929
# @option arguments [Boolean] :include_defaults Return all relevant default configurations for the data stream (default: false)
3030
# @option arguments [Time] :master_timeout Specify timeout for connection to master
31+
# @option arguments [Boolean] :verbose Whether the maximum timestamp for each data stream should be calculated and returned (default: false)
3132
# @option arguments [Hash] :headers Custom HTTP headers
3233
#
3334
# @see https://www.elastic.co/guide/en/elasticsearch/reference/current/data-streams.html

elasticsearch-api/lib/elasticsearch/api/actions/msearch.rb

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,13 @@ def msearch(arguments = {})
6262
params = Utils.process_params(arguments)
6363

6464
if body.is_a?(Array) && body.any? { |d| d.has_key? :search }
65-
payload = body
66-
.each_with_object([]) do |item, sum|
67-
meta = item
68-
data = meta.delete(:search)
65+
payload = body.each_with_object([]) do |item, sum|
66+
meta = item
67+
data = meta.delete(:search)
6968

70-
sum << meta
71-
sum << data
72-
end
73-
.map { |item| Elasticsearch::API.serializer.dump(item) }
69+
sum << meta
70+
sum << data
71+
end.map { |item| Elasticsearch::API.serializer.dump(item) }
7472
payload << '' unless payload.empty?
7573
payload = payload.join("\n")
7674
elsif body.is_a?(Array)

0 commit comments

Comments
 (0)