Skip to content

Commit

Permalink
Sync OpenBSD patchset 819:
Browse files Browse the repository at this point in the history
Nuke a redundant if statement, from Tiago Cunha.
  • Loading branch information
Tiago Cunha committed May 26, 2011
1 parent e14bf9b commit 28427ef
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions cmd-if-shell.c
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* $Id: cmd-if-shell.c,v 1.12 2011-02-15 15:20:03 tcunha 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>
Expand Down Expand Up @@ -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);
}

Expand Down

0 comments on commit 28427ef

Please sign in to comment.