lib/elasticsearch/api/actions/explain.rb in elasticsearch-api-8.1.0 vs lib/elasticsearch/api/actions/explain.rb in elasticsearch-api-8.1.2
- old
+ new
@@ -41,14 +41,13 @@
#
def explain(arguments = {})
raise ArgumentError, "Required argument 'index' missing" unless arguments[:index]
raise ArgumentError, "Required argument 'id' missing" unless arguments[:id]
+ arguments = arguments.clone
headers = arguments.delete(:headers) || {}
body = arguments.delete(:body)
-
- arguments = arguments.clone
_id = arguments.delete(:id)
_index = arguments.delete(:index)