isimplify, no need for goto - stagit-gopher - A git gopher frontend. (mirror) Err bitreich.org 70 hgit clone git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ URL:git://bitreich.org/stagit-gopher/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/stagit-gopher/ bitreich.org 70 1Log /scm/stagit-gopher/log.gph bitreich.org 70 1Files /scm/stagit-gopher/files.gph bitreich.org 70 1Refs /scm/stagit-gopher/refs.gph bitreich.org 70 1Tags /scm/stagit-gopher/tag bitreich.org 70 1README /scm/stagit-gopher/file/README.gph bitreich.org 70 1LICENSE /scm/stagit-gopher/file/LICENSE.gph bitreich.org 70 i--- Err bitreich.org 70 1commit f89c317dee3006e0c7b88832d7c74e30f646036c /scm/stagit-gopher/commit/f89c317dee3006e0c7b88832d7c74e30f646036c.gph bitreich.org 70 1parent f8e30cf2a0398120bca874bafe170857426a1780 /scm/stagit-gopher/commit/f8e30cf2a0398120bca874bafe170857426a1780.gph bitreich.org 70 hAuthor: Hiltjo Posthuma URL:mailto:hiltjo@codemadness.org bitreich.org 70 iDate: Sat, 7 May 2016 14:34:26 +0200 Err bitreich.org 70 i Err bitreich.org 70 isimplify, no need for goto Err bitreich.org 70 i Err bitreich.org 70 iDiffstat: Err bitreich.org 70 i M stagit.c | 8 +++----- Err bitreich.org 70 i Err bitreich.org 70 i1 file changed, 3 insertions(+), 5 deletions(-) Err bitreich.org 70 i--- Err bitreich.org 70 1diff --git a/stagit.c b/stagit.c /scm/stagit-gopher/file/stagit.c.gph bitreich.org 70 i@@ -866,12 +866,10 @@ writefiles(FILE *fp, const git_oid *id, const char *branch) Err bitreich.org 70 i "ModeNameSize" Err bitreich.org 70 i "\n\n", fp); Err bitreich.org 70 i Err bitreich.org 70 i- if (git_commit_lookup(&commit, repo, id) || Err bitreich.org 70 i- git_commit_tree(&tree, commit)) Err bitreich.org 70 i- goto err; Err bitreich.org 70 i- ret = writefilestree(fp, tree, branch, ""); Err bitreich.org 70 i+ if (!git_commit_lookup(&commit, repo, id) && Err bitreich.org 70 i+ !git_commit_tree(&tree, commit)) Err bitreich.org 70 i+ ret = writefilestree(fp, tree, branch, ""); Err bitreich.org 70 i Err bitreich.org 70 i-err: Err bitreich.org 70 i fputs("", fp); Err bitreich.org 70 i Err bitreich.org 70 i git_commit_free(commit); Err bitreich.org 70 .