[booking] Crash fix in availability filter

This commit is contained in:
Arsentiy Milchakov 2018-07-26 16:39:50 +03:00 committed by Roman Kuznetsov
parent 4cc87e8430
commit e6aac8ccd2

View file

@ -69,7 +69,6 @@ void FillResults(HotelToResults && hotelToResults, std::vector<std::string> cons
case Cache::HotelStatus::NotReady:
{
auto hotelStatus = cache.Get(hotelToResult.m_hotelId);
CHECK_NOT_EQUAL(hotelStatus, Cache::HotelStatus::Absent, ());
if (hotelStatus == Cache::HotelStatus::Available)
results.AddResult(std::move(hotelToResult.m_result));