From b96ac809018c461b55aed66459a68a71dd08047f Mon Sep 17 00:00:00 2001 From: nicm Date: Thu, 9 Apr 2020 13:52:31 +0000 Subject: Some unnecessary assignments and unused variables. --- cmd-send-keys.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'cmd-send-keys.c') diff --git a/cmd-send-keys.c b/cmd-send-keys.c index 5770572a..15967b0c 100644 --- a/cmd-send-keys.c +++ b/cmd-send-keys.c @@ -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); } -- cgit