reflog: remove some dead code
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;