Skip to content

Commit 76645cd

Browse files
committed
Remove meta empty case from Mapping::toXContent
1 parent c137946 commit 76645cd

File tree

1 file changed

+1
-1
lines changed
  • core/src/main/java/org/elasticsearch/index/mapper

1 file changed

+1
-1
lines changed

core/src/main/java/org/elasticsearch/index/mapper/Mapping.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ public XContentBuilder toXContent(XContentBuilder builder, Params params) throws
129129
root.toXContent(builder, params, new ToXContent() {
130130
@Override
131131
public XContentBuilder toXContent(XContentBuilder builder, Params params) throws IOException {
132-
if (meta != null && !meta.isEmpty()) {
132+
if (meta != null) {
133133
builder.field("_meta", meta);
134134
}
135135
for (Mapper mapper : metadataMappers) {

0 commit comments

Comments
 (0)