diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2015-10-25 13:55:46 +0100 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2015-10-25 13:55:46 +0100 |
| commit | aa14bf0a967e03f62c1e8a86b99b98ec766b7ae3 (patch) | |
| tree | a72bb20cd5dcdf6f328e6f5cfbd9da870fd82027 | |
| parent | 0f7bda60e42f29ff20ade3e2f74aa0943d10b1a4 (diff) | |
output: Fix code style.
| -rw-r--r-- | sway/output.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/sway/output.c b/sway/output.c index 39c933f8..5044b7aa 100644 --- a/sway/output.c +++ b/sway/output.c @@ -5,17 +5,13 @@ swayc_t *output_by_name(const char* name) { if (strcasecmp(name, "left") == 0) { return swayc_adjacent_output(NULL, MOVE_LEFT); - } - else if (strcasecmp(name, "right") == 0) { + } else if (strcasecmp(name, "right") == 0) { return swayc_adjacent_output(NULL, MOVE_RIGHT); - } - else if (strcasecmp(name, "up") == 0) { + } else if (strcasecmp(name, "up") == 0) { return swayc_adjacent_output(NULL, MOVE_UP); - } - else if (strcasecmp(name, "down") == 0) { + } else if (strcasecmp(name, "down") == 0) { return swayc_adjacent_output(NULL, MOVE_DOWN); - } - else { + } else { for(int i = 0; i < root_container.children->length; ++i) { swayc_t *c = root_container.children->items[i]; if (c->type == C_OUTPUT && strcasecmp(c->name, name) == 0) { |
