lib/elasticsearch/api/actions/indices/rollover.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/indices/rollover.rb in elasticsearch-api-8.1.2

- old
+ new

@@ -34,14 +34,13 @@ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/indices-rollover-index.html # def rollover(arguments = {}) raise ArgumentError, "Required argument 'alias' missing" unless arguments[:alias] + arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = arguments.delete(:body) - - arguments = arguments.clone + body = arguments.delete(:body) _alias = arguments.delete(:alias) _new_index = arguments.delete(:new_index)