stagit

simplify, id is unused

Hiltjo Posthuma contact@arjunchoudhary.com

commit: 414ad01 parent: b54a438
1 files changed, 2 insertions(+), 3 deletions(-)
Mstagit.c+2-3
M · stagit.c +2, -3
 1@@ -940,9 +940,8 @@ writerefs(FILE *fp)
 2 			default:
 3 				continue;
 4 			}
 5-			if (!(id = git_reference_target(r)))
 6-				goto err;
 7-			if (git_reference_peel(&obj, r, GIT_OBJ_ANY))
 8+			if (!git_reference_target(r) ||
 9+			    git_reference_peel(&obj, r, GIT_OBJ_ANY))
10 				goto err;
11 			if (!(id = git_object_id(obj)))
12 				goto err;