lib/elasticsearch/api/actions/indices/split.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/indices/split.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -33,14 +33,13 @@
#
def split(arguments = {})
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
raise ArgumentError, "Required argument 'target' missing" unless arguments[:target]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
- body = arguments.delete(:body)
-
- arguments = arguments.clone
+ body = arguments.delete(:body)
_index = arguments.delete(:index)
_target = arguments.delete(:target)