diff options
author | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-05-07 14:38:39 +0200 |
---|---|---|
committer | Hiltjo Posthuma <hiltjo@codemadness.org> | 2016-05-07 14:38:39 +0200 |
commit | a7dd578de71f81be7af95dc1cbbf0137316018ff (patch) | |
tree | 35e94a32316aa02097875ee89dc3e3cac119bba1 /stagit.c | |
parent | f89c317dee3006e0c7b88832d7c74e30f646036c (diff) |
simplify, id is unused
Diffstat (limited to 'stagit.c')
-rw-r--r-- | stagit.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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; |