Skip to content

Commit d80ec19

Browse files
committed
Fix checkstyle error
1 parent 18fd911 commit d80ec19

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/action/admin/cluster/snapshots/get/GetSnapshotsRequest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,7 @@ public ActionRequestValidationException validate() {
182182
} else if (after != null && fromSortValue != null) {
183183
validationException = addValidationError("can't use after and from_sort_value simultaneously", validationException);
184184
}
185-
if (state != null && !(Arrays.stream(SnapshotState.values()).anyMatch(s -> s.name().equalsIgnoreCase(state)))) {
185+
if (state != null && Arrays.stream(SnapshotState.values()).noneMatch(s -> s.name().equalsIgnoreCase(state))) {
186186
validationException = addValidationError(
187187
"state must be SUCCESS, IN_PROGRESS, FAILED, PARTIAL, or INCOMPATIBLE",
188188
validationException

0 commit comments

Comments
 (0)