commands/bind.c: remove unnecessary check

This commit is contained in:
Jason Nader 2020-03-15 17:11:33 +09:00 committed by Drew DeVault
parent 55016729a5
commit 8b21bc6a79
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}