time_zone_content_manager: Collapse auto and default case

Prevents a useless self-assignment from occurring.
This commit is contained in:
Lioncash 2020-08-14 10:58:55 -04:00
parent e050594706
commit b14277ef97

View file

@ -73,10 +73,8 @@ TimeZoneContentManager::TimeZoneContentManager(TimeManager& time_manager, Core::
std::string location_name; std::string location_name;
const auto timezone_setting = Settings::GetTimeZoneString(); const auto timezone_setting = Settings::GetTimeZoneString();
if (timezone_setting == "auto") { if (timezone_setting == "auto" || timezone_setting == "default") {
location_name = Common::TimeZone::GetDefaultTimeZone(); location_name = Common::TimeZone::GetDefaultTimeZone();
} else if (timezone_setting == "default") {
location_name = location_name;
} else { } else {
location_name = timezone_setting; location_name = timezone_setting;
} }