We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be00a10 commit b447813Copy full SHA for b447813
server/src/main/java/org/elasticsearch/action/bulk/TransportSimulateBulkAction.java
@@ -176,7 +176,9 @@ private MapperService.MergeReason getMergeReason(String mergeType) {
176
return Optional.ofNullable(mergeType).map(type -> switch (type) {
177
case "index" -> MapperService.MergeReason.MAPPING_UPDATE;
178
case "template" -> MapperService.MergeReason.INDEX_TEMPLATE;
179
- default -> throw new IllegalArgumentException("Unsupported merge type '" + mergeType + "'. Valid values are 'index' and 'template'.");
+ default -> throw new IllegalArgumentException(
180
+ "Unsupported merge type '" + mergeType + "'. Valid values are 'index' and 'template'."
181
+ );
182
}).orElse(MapperService.MergeReason.MAPPING_UPDATE);
183
}
184
0 commit comments