Commit cc5481cb036883dee0ba8b5d95c085131ae3c356

Stefan Sperling 2019-05-13T11:29:37

remove pointless goto in collect_commit_logmsg()

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/got/got.c b/got/got.c
index 4c27673..c7ae92a 100644
--- a/got/got.c
+++ b/got/got.c
@@ -2267,9 +2267,6 @@ collect_commit_logmsg(struct got_pathlist_head *commitable_paths, char **logmsg,
 		    "commit message cannot be empty, aborting");
 		goto done;
 	}
-
-	goto done;
-
 done:
 	if (tmpfile) {
 		unlink(tmpfile);