lib/elasticsearch/api/actions/tasks/get.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/tasks/get.rb in elasticsearch-api-8.1.2

- old
+ new

@@ -31,14 +31,13 @@ # @option arguments [Hash] :headers Custom HTTP headers # # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/tasks.html # def get(arguments = {}) + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil - - arguments = arguments.clone _task_id = arguments.delete(:task_id) method = Elasticsearch::API::HTTP_GET path = "_tasks/#{Utils.__listify(_task_id)}"