simplify, id is unused
This commit is contained in:
parent
f89c317dee
commit
a7dd578de7
1 changed files with 2 additions and 3 deletions
5
stagit.c
5
stagit.c
|
@ -940,9 +940,8 @@ writerefs(FILE *fp)
|
|||
default:
|
||||
continue;
|
||||
}
|
||||
if (!(id = git_reference_target(r)))
|
||||
goto err;
|
||||
if (git_reference_peel(&obj, r, GIT_OBJ_ANY))
|
||||
if (!git_reference_target(r) ||
|
||||
git_reference_peel(&obj, r, GIT_OBJ_ANY))
|
||||
goto err;
|
||||
if (!(id = git_object_id(obj)))
|
||||
goto err;
|
||||
|
|
Loading…
Reference in a new issue