lib/elasticsearch/api/actions/watcher/activate_watch.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/watcher/activate_watch.rb in elasticsearch-api-8.1.2

- old
+ new

@@ -27,14 +27,13 @@ # @see https://www.elastic.co/guide/en/elasticsearch/reference/8.1/watcher-api-activate-watch.html # def activate_watch(arguments = {}) raise ArgumentError, "Required argument 'watch_id' missing" unless arguments[:watch_id] + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = nil - - arguments = arguments.clone _watch_id = arguments.delete(:watch_id) method = Elasticsearch::API::HTTP_PUT path = "_watcher/watch/#{Utils.__listify(_watch_id)}/_activate"