From: Felipe Contreras Date: Sun, 09 Jun 2013 16:40:21 GMT Subject: [PATCH v4 09/45] sequencer: remove useless indentation Message-ID: <1370796057-25312-10-git-send-email-felipe.contreras@gmail.com> In-Reply-To: <1370796057-25312-1-git-send-email-felipe.contreras@gmail.com> By using good ol' goto. Signed-off-by: Felipe Contreras --- builtin/sequencer.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/builtin/sequencer.c b/builtin/sequencer.c index e92e039..b2c8c94 100644 --- a/builtin/sequencer.c +++ b/builtin/sequencer.c @@ -390,7 +390,7 @@ static int do_pick_commit(struct commit *commit, struct replay_opts *opts) struct commit_message msg = { NULL, NULL, NULL, NULL, NULL }; char *defmsg = NULL; struct strbuf msgbuf = STRBUF_INIT; - int res, unborn = 0; + int res, unborn = 0, allow; if (opts->no_commit) { /* @@ -535,14 +535,16 @@ static int do_pick_commit(struct commit *commit, struct replay_opts *opts) msg.subject); print_advice(res == 1, opts); rerere(opts->allow_rerere_auto); - } else { - int allow = allow_empty(opts, commit); + goto leave; + } + + allow = allow_empty(opts, commit); if (allow < 0) return allow; if (!opts->no_commit) res = run_git_commit(defmsg, opts, allow); - } +leave: free_message(&msg); free(defmsg); -- 1.8.3.698.g079b096