From: Benedikt Heine Date: Sun, 31 Jul 2016 17:27:02 +0000 (+0200) Subject: remove goto statement X-Git-Tag: 4.13~52^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5d6d974c661438c0d6f8cbe51da63de623d5bd4b;p=i3%2Fi3 remove goto statement remove goto statement to similarize workspace_next and workspace_prev --- diff --git a/src/workspace.c b/src/workspace.c index b0d59773..e6a156cd 100644 --- a/src/workspace.c +++ b/src/workspace.c @@ -596,7 +596,7 @@ Con *workspace_prev(void) { found_current = true; } else if (child->num == -1 && found_current) { prev = child; - goto workspace_prev_end; + return prev; } } } @@ -628,7 +628,6 @@ Con *workspace_prev(void) { if (!prev) prev = first_opposite ? first_opposite : last; -workspace_prev_end: return prev; }