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

- old
+ new

@@ -40,14 +40,13 @@ # def index(arguments = {}) raise ArgumentError, "Required argument 'body' missing" unless arguments[:body] raise ArgumentError, "Required argument 'index' missing" unless arguments[:index] + arguments = arguments.clone headers = arguments.delete(:headers) || {} body = arguments.delete(:body) - - arguments = arguments.clone _id = arguments.delete(:id) _index = arguments.delete(:index)