lib/elasticsearch/api/actions/indices/get.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/indices/get.rb in elasticsearch-api-8.0.1

- old
+ new

@@ -34,14 +34,13 @@ # @see https://www.elastic.co/guide/en/elasticsearch/reference/master/indices-get-index.html # def get(arguments = {}) raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] + arguments = arguments.clone headers = arguments.delete(:headers) || {} - body = nil - - arguments = arguments.clone + body = nil _index = arguments.delete(:index) method = Elasticsearch::API::HTTP_GET path = "#{Utils.__listify(_index)}"