From 9875340c7f3d7db8ba1a18ab0e04359aa9a35fa9 Mon Sep 17 00:00:00 2001 From: Tim Hunter Date: Mon, 10 Feb 2025 18:33:19 +0000 Subject: [PATCH] Removing redundant params in params.merge() removes 2 redundant inclusions of params in a params.merge() call in reindex.rb --- lib/elastomer_client/client/reindex.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/elastomer_client/client/reindex.rb b/lib/elastomer_client/client/reindex.rb index 883f17a0..903b5043 100644 --- a/lib/elastomer_client/client/reindex.rb +++ b/lib/elastomer_client/client/reindex.rb @@ -20,12 +20,12 @@ def initialize(client) attr_reader :client def reindex(body, params = {}) - response = client.post "/_reindex", params.merge(params, body:, action: "reindex", rest_api: "reindex") + response = client.post "/_reindex", params.merge(body:, action: "reindex", rest_api: "reindex") response.body end def rethrottle(task_id, params = {}) - response = client.post "/_reindex/#{task_id}/_rethrottle", params.merge(params, action: "rethrottle", rest_api: "reindex") + response = client.post "/_reindex/#{task_id}/_rethrottle", params.merge(action: "rethrottle", rest_api: "reindex") response.body end