lib/elasticsearch/api/actions/snapshot/clone.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/snapshot/clone.rb in elasticsearch-api-8.0.1

- old
+ new

@@ -34,14 +34,13 @@ raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'repository' missing" unless arguments[:repository] raise ArgumentError, "Required argument 'snapshot' missing" unless arguments[:snapshot] raise ArgumentError, "Required argument 'target_snapshot' missing" unless arguments[:target_snapshot] + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) - - arguments = arguments.clone _repository = arguments.delete(:repository) _snapshot = arguments.delete(:snapshot)