Commit 4004d68f99c5f8c4f3a338ca0b2e17fddc55c273

Patrick Steinhardt 2017-03-24T08:36:12

blame_git: remove spuriuous goto The recent addition of an error code to `pass_whole_blame` in ff8d2eb15 (blame_git: check return value of object lookup, 2017-03-20) introduced a spurious goto. Remove it.

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/blame_git.c b/src/blame_git.c
index 735b62d..6d2f153 100644
--- a/src/blame_git.c
+++ b/src/blame_git.c
@@ -547,7 +547,6 @@ static int pass_blame(git_blame *blame, git_blame__origin *origin, uint32_t opt)
 		if (porigin->blob && origin->blob &&
 		    !git_oid_cmp(git_blob_id(porigin->blob), git_blob_id(origin->blob))) {
 			error = pass_whole_blame(blame, origin, porigin);
-				goto finish;
 			origin_decref(porigin);
 			goto finish;
 		}