aboutsummaryrefslogtreecommitdiff
path: root/sway/commands/bind.c
diff options
context:
space:
mode:
authorJason Nader <jason.nader@protonmail.com>2020-03-15 17:11:33 +0900
committerDrew DeVault <sir@cmpwn.com>2020-03-15 14:30:05 +0100
commit8b21bc6a7905e3386ad62e7b7a3f0936ecbca167 (patch)
tree1c9396d4c43b9a0e6d57eb341a7ca7b9636c6bf8 /sway/commands/bind.c
parent55016729a573a171a0faa20e0dec44e703da2c45 (diff)
commands/bind.c: remove unnecessary check
Diffstat (limited to 'sway/commands/bind.c')
-rw-r--r--sway/commands/bind.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/commands/bind.c b/sway/commands/bind.c
index 0ddee742..c86c39dd 100644
--- a/sway/commands/bind.c
+++ b/sway/commands/bind.c
@@ -145,7 +145,7 @@ static struct cmd_results *identify_key(const char* name, bool first_key,
cmd_results_new(CMD_INVALID, message);
free(message);
return error;
- } else if (!button) {
+ } else {
return cmd_results_new(CMD_INVALID, "Unknown button %s", name);
}
}