summaryrefslogtreecommitdiffstats
path: root/sway/commands/bar/tray_bind.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/commands/bar/tray_bind.c')
-rw-r--r--sway/commands/bar/tray_bind.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/commands/bar/tray_bind.c b/sway/commands/bar/tray_bind.c
index 7fe67c42..c910d106 100644
--- a/sway/commands/bar/tray_bind.c
+++ b/sway/commands/bar/tray_bind.c
@@ -12,9 +12,6 @@ static struct cmd_results *tray_bind(int argc, char **argv, bool code) {
12 if ((error = checkarg(argc, command, EXPECTED_EQUAL_TO, 2))) { 12 if ((error = checkarg(argc, command, EXPECTED_EQUAL_TO, 2))) {
13 return error; 13 return error;
14 } 14 }
15 if (!config->current_bar) {
16 return cmd_results_new(CMD_FAILURE, "No bar defined.");
17 }
18 15
19 struct tray_binding *binding = calloc(1, sizeof(struct tray_binding)); 16 struct tray_binding *binding = calloc(1, sizeof(struct tray_binding));
20 if (!binding) { 17 if (!binding) {