Skip to content

Commit

Permalink
Address code review comments
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Jul 5, 2024
1 parent 62310da commit 511cb59
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -709,13 +709,14 @@ protected void refreshAllIndices() throws IOException {
if (warnings.isEmpty()) {
return false;
}
boolean allSystemIndexWarning = true;
boolean allSystemIndexWarnings = true;
for (String warning : warnings) {
if (!warning.startsWith("this request accesses system indices:")) {
allSystemIndexWarning = false;
allSystemIndexWarnings = false;
break;
}
}
return !allSystemIndexWarning;
return !allSystemIndexWarnings;
});
refreshRequest.setOptions(requestOptions);
client().performRequest(refreshRequest);
Expand Down

0 comments on commit 511cb59

Please sign in to comment.