Skip to content

Commit 511cb59

Browse files
committed
Address code review comments
Signed-off-by: Craig Perkins <[email protected]>
1 parent 62310da commit 511cb59

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

test/framework/src/main/java/org/opensearch/test/rest/OpenSearchRestTestCase.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -709,13 +709,14 @@ protected void refreshAllIndices() throws IOException {
709709
if (warnings.isEmpty()) {
710710
return false;
711711
}
712-
boolean allSystemIndexWarning = true;
712+
boolean allSystemIndexWarnings = true;
713713
for (String warning : warnings) {
714714
if (!warning.startsWith("this request accesses system indices:")) {
715-
allSystemIndexWarning = false;
715+
allSystemIndexWarnings = false;
716+
break;
716717
}
717718
}
718-
return !allSystemIndexWarning;
719+
return !allSystemIndexWarnings;
719720
});
720721
refreshRequest.setOptions(requestOptions);
721722
client().performRequest(refreshRequest);

0 commit comments

Comments
 (0)