From 8ea019aa820ed6921ea6dace9f352421717fa216 Mon Sep 17 00:00:00 2001 From: Shay Banon Date: Thu, 4 Oct 2012 20:07:57 +0200 Subject: [PATCH] formatting --- .../admin/indices/mapping/get/RestGetMappingAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/elasticsearch/rest/action/admin/indices/mapping/get/RestGetMappingAction.java b/src/main/java/org/elasticsearch/rest/action/admin/indices/mapping/get/RestGetMappingAction.java index 42818aeb20f..3aa662a0a00 100644 --- a/src/main/java/org/elasticsearch/rest/action/admin/indices/mapping/get/RestGetMappingAction.java +++ b/src/main/java/org/elasticsearch/rest/action/admin/indices/mapping/get/RestGetMappingAction.java @@ -116,10 +116,10 @@ public class RestGetMappingAction extends BaseRestHandler { builder.field(mappingMd.type()); builder.map(mappingMd.sourceAsMap()); } - + if (indexMetaData.mappings().values().isEmpty() && types.isEmpty()) { // if no types are specified and no mappings are set for the index, consider this an empty mapping - foundAny = true; + foundAny = true; } builder.endObject();