From 8df4de35e2d1dfb2b9d16d0c47ba8122a79f7cc0 Mon Sep 17 00:00:00 2001 From: Arsentiy Milchakov Date: Tue, 15 Oct 2019 14:54:38 +0300 Subject: [PATCH] [notifications] empty file loading fix --- map/notifications/notification_queue_storage.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/map/notifications/notification_queue_storage.cpp b/map/notifications/notification_queue_storage.cpp index 85ff0173eb..d0fc2fb7ff 100644 --- a/map/notifications/notification_queue_storage.cpp +++ b/map/notifications/notification_queue_storage.cpp @@ -64,9 +64,8 @@ bool QueueStorage::Load(std::vector & dst) catch (FileReader::Exception const &) { dst.clear(); - return false; } - return true; + return !dst.empty(); } } // namespace notifications