Commit 1c35165993c7aac42421354614e216ea8ad3f353

Carlos Martín Nieto 2014-03-20T09:55:47

reflog: remove some dead code

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/refdb_fs.c b/src/refdb_fs.c
index 9b10ef1..9120a3e 100644
--- a/src/refdb_fs.c
+++ b/src/refdb_fs.c
@@ -1048,9 +1048,6 @@ static int maybe_append_head(refdb_fs_backend *backend, const git_reference *ref
 		name = git_reference_name(tmp);
 	}
 
-	if (error < 0)
-		goto cleanup;
-
 	if (strcmp(name, ref->name))
 		goto cleanup;