[gnome-shell] shell-util: Use early-return in shell_util_get_week_start()
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] shell-util: Use early-return in shell_util_get_week_start()
- Date: Sun, 7 Feb 2021 14:53:53 +0000 (UTC)
commit d75b64b88f348c43c52cc7a94b70cfedc2154852
Author: TerraAr <carames ufpr br>
Date: Fri Dec 18 17:54:04 2020 +0000
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>
src/shell-util.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/shell-util.c b/src/shell-util.c
index ab8046a5a8..0bc3f4d65b 100644
--- a/src/shell-util.c
+++ b/src/shell-util.c
@@ -128,7 +128,7 @@ shell_util_get_week_start (void)
{
g_warning ("Whoever translated calendar:week_start:0 for GTK+ "
"did so wrongly.\n");
- week_start = 0;
+ return 0;
}
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]