summaryrefslogtreecommitdiffstats
path: root/cmd-if-shell.c
diff options
context:
space:
mode:
authornicm <nicm>2021-08-21 17:25:32 +0000
committernicm <nicm>2021-08-21 17:25:32 +0000
commit5241dae87de88906dc5c1dc271a4f25522a22d4c (patch)
tree17be354eb3556ed62cfdc74f2a8e4ecfe6599a22 /cmd-if-shell.c
parent68cacaec68ca8300e0ea439abdf9db16e74241bb (diff)
Stop caring about empty commands, just treat as a null command.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r--cmd-if-shell.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index 28e9b5d1..a04bdddd 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -159,8 +159,6 @@ cmd_if_shell_callback(struct job *job)
pr = cmd_parse_from_string(cmd, &cdata->input);
switch (pr->status) {
- case CMD_PARSE_EMPTY:
- break;
case CMD_PARSE_ERROR:
if (cdata->item != NULL)
cmdq_error(cdata->item, "%s", pr->error);