From 970e9df245627f666307db27728dec39e55752cc Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 27 Jan 2023 10:27:33 -0500 Subject: [PATCH] LibLocale: Remove "else" after "if" statements that always return Mostly just to keep clangd quiet. --- Userland/Libraries/LibLocale/DateTimeFormat.cpp | 6 +++--- 1 file 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(); }