[platform] Check the result of Settings::Get.

This commit is contained in:
Maxim Pimenov 2017-05-05 13:52:06 +03:00 committed by r.kuznetsov
parent 2f2be89eb2
commit 14658bd306

View file

@ -2874,7 +2874,7 @@ RouterType Framework::GetLastUsedRouter() const
if (!settings::Get(kRouterTypeKey, routerTypeStr))
return RouterType::Vehicle;
auto routerType = routing::FromString(routerTypeStr);
auto const routerType = routing::FromString(routerTypeStr);
switch (routerType)
{