From 8b21bc6a7905e3386ad62e7b7a3f0936ecbca167 Mon Sep 17 00:00:00 2001 From: Jason Nader Date: Sun, 15 Mar 2020 17:11:33 +0900 Subject: commands/bind.c: remove unnecessary check --- sway/commands/bind.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sway/commands/bind.c') 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); } } -- cgit v1.2.3