Skip to content

Commit

Permalink
leftover
Browse files Browse the repository at this point in the history
  • Loading branch information
javanna committed Nov 20, 2023
1 parent cbb2884 commit f6a5436
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ public ClientYamlTestResponse callApi(
BiPredicate<ClientYamlSuiteRestApi, ClientYamlSuiteRestApi.Path> pathPredicate
) throws IOException {
// on request, we need to replace index specifications by prefixing the remote cluster
if (shouldReplaceIndexWithRemote(apiName, params)) {
if (shouldReplaceIndexWithRemote(apiName)) {
String parameterName = "index";
if (apiName.equals("indices.resolve_index")) {
// in this specific api, the index parameter is called "name"
Expand All @@ -371,7 +371,7 @@ public ClientYamlTestResponse callApi(
return super.callApi(apiName, params, entity, headers, nodeSelector, pathPredicate);
}

private boolean shouldReplaceIndexWithRemote(String apiName, Map<String, String> params) {
private boolean shouldReplaceIndexWithRemote(String apiName) {
if (apiName.equals("scroll")
|| apiName.equals("clear_scroll")
|| apiName.equals("async_search.get")
Expand Down

0 comments on commit f6a5436

Please sign in to comment.