shell-util: Use early-return in shell_util_get_week_start()

Cleanup shell_util_get_week_start() a little bit and use an early-return
instead of setting the week_start variable to 0.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1546>
This commit is contained in:
TerraAr 2020-12-18 17:54:04 +00:00 committed by Marge Bot
parent b90e270dc6
commit d75b64b88f

View File

@ -128,7 +128,7 @@ shell_util_get_week_start (void)
{ {
g_warning ("Whoever translated calendar:week_start:0 for GTK+ " g_warning ("Whoever translated calendar:week_start:0 for GTK+ "
"did so wrongly.\n"); "did so wrongly.\n");
week_start = 0; return 0;
} }
#endif #endif