diff options
author | Timothy Flynn <trflynn89@pm.me> | 2023-01-27 10:27:33 -0500 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2023-01-27 18:00:17 +0000 |
commit | 970e9df245627f666307db27728dec39e55752cc (patch) | |
tree | bfa34076212ac6cb735ce2001bb352d40a3f3e28 /Userland/Libraries/LibLocale | |
parent | c35b1371a30a9eca7820ecf6254e37ff91ef40f2 (diff) | |
download | serenity-970e9df245627f666307db27728dec39e55752cc.zip |
LibLocale: Remove "else" after "if" statements that always return
Mostly just to keep clangd quiet.
Diffstat (limited to 'Userland/Libraries/LibLocale')
-rw-r--r-- | Userland/Libraries/LibLocale/DateTimeFormat.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Userland/Libraries/LibLocale/DateTimeFormat.cpp b/Userland/Libraries/LibLocale/DateTimeFormat.cpp index 48076d8024..d9f6e6132a 100644 --- a/Userland/Libraries/LibLocale/DateTimeFormat.cpp +++ b/Userland/Libraries/LibLocale/DateTimeFormat.cpp @@ -17,11 +17,11 @@ HourCycle hour_cycle_from_string(StringView hour_cycle) { if (hour_cycle == "h11"sv) return HourCycle::H11; - else if (hour_cycle == "h12"sv) + if (hour_cycle == "h12"sv) return HourCycle::H12; - else if (hour_cycle == "h23"sv) + if (hour_cycle == "h23"sv) return HourCycle::H23; - else if (hour_cycle == "h24"sv) + if (hour_cycle == "h24"sv) return HourCycle::H24; VERIFY_NOT_REACHED(); } |