Skip to content

Commit 2e04266

Browse files
jbaieragmarouli
andauthored
Update server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java
Co-authored-by: Mary Gouseti <[email protected]>
1 parent 3a48015 commit 2e04266

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/IndexNameExpressionResolver.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -634,12 +634,7 @@ private static boolean shouldIncludeRegularIndices(IndicesOptions indicesOptions
634634
private static boolean shouldIncludeFailureIndices(IndicesOptions indicesOptions, IndexComponentSelector expressionSelector) {
635635
// We return failure indices regardless of whether the data stream actually has the `failureStoreEnabled` flag set to true.
636636
if (indicesOptions.allowSelectors()) {
637-
if (expressionSelector != null) {
638-
return expressionSelector.shouldIncludeFailures();
639-
} else {
640-
// Defaults to no failure indices
641-
return false;
642-
}
637+
return expressionSelector != null && expressionSelector.shouldIncludeFailures();
643638
}
644639
return false;
645640
}

0 commit comments

Comments
 (0)