Commit c4fcae5f7cacf9478d1d92c6586615e5afcc3ac8

Vicent Martí 2013-12-06T04:29:59

Merge pull request #1989 from palistov/blame-cleanup blame.c: Remove unnecessary error-check and goto

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/blame.c b/src/blame.c
index 219a6bf..ea9f77a 100644
--- a/src/blame.c
+++ b/src/blame.c
@@ -282,8 +282,6 @@ static int load_blob(git_blame *blame)
 		goto cleanup;
 	error = git_object_lookup_bypath((git_object**)&blame->final_blob,
 			(git_object*)blame->final, blame->path, GIT_OBJ_BLOB);
-	if (error < 0)
-		goto cleanup;
 
 cleanup:
 	return error;