File tree Expand file tree Collapse file tree 1 file changed +1
-6
lines changed
server/src/main/java/org/elasticsearch/cluster/metadata Expand file tree Collapse file tree 1 file changed +1
-6
lines changed Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments