remove goto statement
remove goto statement to similarize workspace_next and workspace_prev
This commit is contained in:
parent
d979748853
commit
5d6d974c66
|
@ -596,7 +596,7 @@ Con *workspace_prev(void) {
|
||||||
found_current = true;
|
found_current = true;
|
||||||
} else if (child->num == -1 && found_current) {
|
} else if (child->num == -1 && found_current) {
|
||||||
prev = child;
|
prev = child;
|
||||||
goto workspace_prev_end;
|
return prev;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -628,7 +628,6 @@ Con *workspace_prev(void) {
|
||||||
if (!prev)
|
if (!prev)
|
||||||
prev = first_opposite ? first_opposite : last;
|
prev = first_opposite ? first_opposite : last;
|
||||||
|
|
||||||
workspace_prev_end:
|
|
||||||
return prev;
|
return prev;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue