lib/elasticsearch/api/actions/machine_learning/put_job.rb in elasticsearch-api-8.0.0 vs lib/elasticsearch/api/actions/machine_learning/put_job.rb in elasticsearch-api-8.0.1

- old
+ new

@@ -33,14 +33,13 @@ # def put_job(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'job_id' missing" unless arguments[:job_id] + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) - - arguments = arguments.clone _job_id = arguments.delete(:job_id) method = Elasticsearch::API::HTTP_PUT path = "_ml/anomaly_detectors/#{Utils.__listify(_job_id)}"