summaryrefslogtreecommitdiffstats
path: root/cmd-if-shell.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@openbsd.org>2011-05-25 17:50:52 +0000
committerNicholas Marriott <nicm@openbsd.org>2011-05-25 17:50:52 +0000
commit70d232289b500300a63a4ac2c45dbe4acf15c2db (patch)
treee6164752ebe14faf6380884b52a1fb13e86606d0 /cmd-if-shell.c
parent240cae4c92529ded71e13c5b5ae0a2f4bbe5ff95 (diff)
Nuke a redundant if statement, from Tiago Cunha.
Diffstat (limited to 'cmd-if-shell.c')
-rw-r--r--cmd-if-shell.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/cmd-if-shell.c b/cmd-if-shell.c
index b81985f8..f2b015d2 100644
--- a/cmd-if-shell.c
+++ b/cmd-if-shell.c
@@ -88,11 +88,7 @@ cmd_if_shell_callback(struct job *job)
return;
}
- if (cmd_list_exec(cmdlist, ctx) < 0) {
- cmd_list_free(cmdlist);
- return;
- }
-
+ cmd_list_exec(cmdlist, ctx);
cmd_list_free(cmdlist);
}