Skip to content

Commit 3375bc0

Browse files
committed
[API] Autogenerated Rubocop changes
1 parent 8731d90 commit 3375bc0

File tree

3 files changed

+41
-16
lines changed

3 files changed

+41
-16
lines changed

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

+6-8
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/msearch.rb

+6-8
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)
+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
delete_autoscaling_policy.rb
2+
get_autoscaling_capacity.rb
3+
get_autoscaling_policy.rb
4+
put_autoscaling_policy.rb
5+
capabilities.rb
6+
secret_delete.rb
7+
secret_get.rb
8+
secret_post.rb
9+
secret_put.rb
10+
delete_secret.rb
11+
get_secret.rb
12+
post_secret.rb
13+
validate.rb
14+
validate_detector.rb
15+
bulk.rb
16+
flamegraph.rb
17+
stacktraces.rb
18+
status.rb
19+
topn_functions.rb
20+
activate_user_profile.rb
21+
disable_user_profile.rb
22+
enable_user_profile.rb
23+
get_user_profile.rb
24+
has_privileges_user_profile.rb
25+
suggest_user_profiles.rb
26+
update_user_profile_data.rb
27+
delete_node.rb
28+
get_node.rb
29+
put_node.rb

0 commit comments

Comments
 (0)