Some unnecessary assignments and unused variables.

This commit is contained in:
nicm
2020-04-09 13:52:31 +00:00
parent c4d0089edb
commit b96ac80901
6 changed files with 7 additions and 12 deletions

View File

@ -152,7 +152,7 @@ cmd_send_keys_exec(struct cmd *self, struct cmdq_item *item)
return (CMD_RETURN_ERROR);
}
if (wme != NULL && (args_has(args, 'X') || args->argc == 0)) {
if (wme == NULL || wme->mode->command == NULL) {
if (wme->mode->command == NULL) {
cmdq_error(item, "not in a mode");
return (CMD_RETURN_ERROR);
}