mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-01-10 11:08:23 -05:00
style: include brackets for if/while/for, even if it's a single statement
This commit is contained in:
parent
1fbd6cb0f0
commit
dcc743047b
7 changed files with 39 additions and 15 deletions
|
|
@ -720,8 +720,9 @@ static struct wlr_subsurface *subsurface_find_sibling(
|
|||
|
||||
struct wlr_subsurface *sibling;
|
||||
wl_list_for_each(sibling, &parent->subsurface_list, parent_link) {
|
||||
if (sibling->surface == surface && sibling != subsurface)
|
||||
if (sibling->surface == surface && sibling != subsurface) {
|
||||
return sibling;
|
||||
}
|
||||
}
|
||||
|
||||
return NULL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue