Ver Fonte

LibLocale: Remove "else" after "if" statements that always return

Mostly just to keep clangd quiet.
Timothy Flynn há 2 anos atrás
pai
commit
970e9df245
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      Userland/Libraries/LibLocale/DateTimeFormat.cpp

+ 3 - 3
Userland/Libraries/LibLocale/DateTimeFormat.cpp

@@ -17,11 +17,11 @@ HourCycle hour_cycle_from_string(StringView hour_cycle)
 {
 {
     if (hour_cycle == "h11"sv)
     if (hour_cycle == "h11"sv)
         return HourCycle::H11;
         return HourCycle::H11;
-    else if (hour_cycle == "h12"sv)
+    if (hour_cycle == "h12"sv)
         return HourCycle::H12;
         return HourCycle::H12;
-    else if (hour_cycle == "h23"sv)
+    if (hour_cycle == "h23"sv)
         return HourCycle::H23;
         return HourCycle::H23;
-    else if (hour_cycle == "h24"sv)
+    if (hour_cycle == "h24"sv)
         return HourCycle::H24;
         return HourCycle::H24;
     VERIFY_NOT_REACHED();
     VERIFY_NOT_REACHED();
 }
 }