summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Martí <vicent@github.com>2013-12-06 04:29:59 -0800
committerVicent Martí <vicent@github.com>2013-12-06 04:29:59 -0800
commitc4fcae5f7cacf9478d1d92c6586615e5afcc3ac8 (patch)
tree063e16830b15d8ee4fb5230e4396e8ad4fbc4bce /src
parent98c248d7bf57c2a74761bb8bb8b41a965cdf58d6 (diff)
parent8f460f2c464bb5dd7bb65374cfa3d965badc8da1 (diff)
downloadlibgit2-c4fcae5f7cacf9478d1d92c6586615e5afcc3ac8.tar.gz
Merge pull request #1989 from palistov/blame-cleanup
blame.c: Remove unnecessary error-check and goto
Diffstat (limited to 'src')
-rw-r--r--src/blame.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/blame.c b/src/blame.c
index 219a6bfe4..ea9f77af5 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;