Skip to content

Commit

Permalink
tree/container: drop unnecessary check in container_get_siblings()
Browse files Browse the repository at this point in the history
The check for container->pending.workspace already covers this.

References: #7315 (comment)
  • Loading branch information
emersion authored and rpigott committed Jan 3, 2023
1 parent 0c23b0e commit 9e15e2f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions sway/tree/container.c
Original file line number Diff line number Diff line change
Expand Up @@ -1407,9 +1407,6 @@ list_t *container_get_siblings(struct sway_container *container) {
if (container->pending.parent) {
return container->pending.parent->pending.children;
}
if (container_is_scratchpad_hidden(container)) {
return NULL;
}
if (!container->pending.workspace) {
return NULL;
}
Expand Down

0 comments on commit 9e15e2f

Please sign in to comment.