소스 검색

time_zone_content_manager: Collapse auto and default case

Prevents a useless self-assignment from occurring.
Lioncash 6 년 전
부모
커밋
b14277ef97
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      src/core/hle/service/time/time_zone_content_manager.cpp

+ 1 - 3
src/core/hle/service/time/time_zone_content_manager.cpp

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