Skip to content

Commit b447813

Browse files
author
elasticsearchmachine
committed
[CI] Auto commit changes from spotless
1 parent be00a10 commit b447813

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

server/src/main/java/org/elasticsearch/action/bulk/TransportSimulateBulkAction.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,9 @@ private MapperService.MergeReason getMergeReason(String mergeType) {
176176
return Optional.ofNullable(mergeType).map(type -> switch (type) {
177177
case "index" -> MapperService.MergeReason.MAPPING_UPDATE;
178178
case "template" -> MapperService.MergeReason.INDEX_TEMPLATE;
179-
default -> throw new IllegalArgumentException("Unsupported merge type '" + mergeType + "'. Valid values are 'index' and 'template'.");
179+
default -> throw new IllegalArgumentException(
180+
"Unsupported merge type '" + mergeType + "'. Valid values are 'index' and 'template'."
181+
);
180182
}).orElse(MapperService.MergeReason.MAPPING_UPDATE);
181183
}
182184

0 commit comments

Comments
 (0)