Commit 8f460f2c464bb5dd7bb65374cfa3d965badc8da1

Paul Holden 2013-12-05T20:41:12

blame.c: Remove unnecessary error-check and goto In private function 'load_blob'.

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;