[ios] Review fixes.

This commit is contained in:
Ilya Grechuhin 2016-03-01 14:36:44 +03:00 committed by Sergey Yershov
parent c75b53a7f6
commit 9e54a008ac

View file

@ -124,12 +124,7 @@ using namespace storage;
{
TCountriesVec childrenId;
GetFramework().Storage().GetChildren(self.parentCountryId, childrenId);
bool const isChildren =
std::any_of(childrenId.cbegin(), childrenId.cend(), [&countryId](TCountryId const & cId)
{
return cId == countryId;
});
if (isChildren)
if (childrenId.find(countryId) != childrenId.cend())
process();
}
}