From 3a6e1f02bf70abc4eb57b7020a1d9eca64c98e58 Mon Sep 17 00:00:00 2001 From: Anatoly Serdtcev Date: Thu, 27 Dec 2018 14:15:18 +0300 Subject: [PATCH] [geocoder] Fix for review --- geocoder/hierarchy.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/geocoder/hierarchy.cpp b/geocoder/hierarchy.cpp index 790f89a4e8..bff5558aa0 100644 --- a/geocoder/hierarchy.cpp +++ b/geocoder/hierarchy.cpp @@ -76,19 +76,13 @@ bool Hierarchy::Entry::DeserializeFromJSONImpl(json_t * const root, string const { Type const type = static_cast(i); string const & levelKey = ToString(type); - auto const * levelJson = base::GetJSONOptionalField(address, levelKey); + auto * levelJson = base::GetJSONOptionalField(address, levelKey); if (!levelJson) continue; if (json_is_null(levelJson)) - { - // Ignore buildings with out full address. - if (Type::Building == type) return false; - continue; - } - string levelValue; FromJSON(levelJson, levelValue); if (levelValue.empty())