]> git.sur5r.net Git - i3/i3/commitdiff
remove goto statement
authorBenedikt Heine <bebe@bebehei.de>
Sun, 31 Jul 2016 17:27:02 +0000 (19:27 +0200)
committerBenedikt Heine <bebe@bebehei.de>
Wed, 24 Aug 2016 09:11:50 +0000 (11:11 +0200)
remove goto statement to similarize workspace_next and workspace_prev

src/workspace.c

index b0d5977388cd9fb1cbd703af5a0476cb8f6b8df3..e6a156cd2f8c96ad145cc85b2f13ce06cda89167 100644 (file)
@@ -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;
 }