diff --git a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/TrainedModelCacheMetadata.java b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/TrainedModelCacheMetadata.java index 897c9c3ceaab3..0fe0df62e7ed2 100644 --- a/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/TrainedModelCacheMetadata.java +++ b/x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ml/inference/TrainedModelCacheMetadata.java @@ -43,7 +43,6 @@ public class TrainedModelCacheMetadata extends AbstractNamedDiffable toXContentChunked(ToXContent.Params ignored) { - return Iterators.single(((builder, params) -> { - return builder.field(VERSION_FIELD.getPreferredName(), version); - })); + return Iterators.single(((builder, params) -> { return builder.field(VERSION_FIELD.getPreferredName(), version); })); } @Override