@matheusbsbs / matheus-bagliano / commits / 0bc87ffb6c
Fork 0

http-push.c cleanup

Removes conditional return. Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Junio C Hamano <junkio@cox.net>

David Rientjes committed Aug 14, 2006 at 13:37 UTC 0bc87ffb6c8edbb44bd72a4e1a5aa81c64f7eb37
1 file changed +1 -4
http-push.c
+1 -4
@@ -2186,10 +2186,7 @@ static int verify_merge_base(unsigned char *head_sha1, unsigned char *branch_sha
2186 struct commit *branch = lookup_commit(branch_sha1);
2187 struct commit_list *merge_bases = get_merge_bases(head, branch, 1);
2188
2189 - if (merge_bases && !merge_bases->next && merge_bases->item == branch)
2190 - return 1;
2191 -
2192 - return 0;
2189 + return (merge_bases && !merge_bases->next && merge_bases->item == branch);
2190 }
2191
2192 static int delete_remote_branch(char *pattern, int force)