diff options
author | 2011-05-25 17:50:52 +0000 | |
---|---|---|
committer | 2011-05-25 17:50:52 +0000 | |
commit | 4f99d3bd95e92026da61862ff1122a8deb755f54 (patch) | |
tree | 88e58fff9f88e9b7de5399433c9d693f20f0242e /usr.bin/tmux/cmd-if-shell.c | |
parent | sync (diff) | |
download | wireguard-openbsd-4f99d3bd95e92026da61862ff1122a8deb755f54.tar.xz wireguard-openbsd-4f99d3bd95e92026da61862ff1122a8deb755f54.zip |
Nuke a redundant if statement, from Tiago Cunha.
Diffstat (limited to 'usr.bin/tmux/cmd-if-shell.c')
-rw-r--r-- | usr.bin/tmux/cmd-if-shell.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/usr.bin/tmux/cmd-if-shell.c b/usr.bin/tmux/cmd-if-shell.c index fd98afb0ebd..fbae0302a2b 100644 --- a/usr.bin/tmux/cmd-if-shell.c +++ b/usr.bin/tmux/cmd-if-shell.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cmd-if-shell.c,v 1.11 2011/01/26 01:54:56 nicm Exp $ */ +/* $OpenBSD: cmd-if-shell.c,v 1.12 2011/05/25 17:50:52 nicm Exp $ */ /* * Copyright (c) 2009 Tiago Cunha <me@tiagocunha.org> @@ -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); } |