git@vger.kernel.org mailing list mirror (one of many)
 help / color / mirror / code / Atom feed
* [PATCH 22/28] http-push.c cleanup
@ 2006-08-14 20:37 David Rientjes
  0 siblings, 0 replies; only message in thread
From: David Rientjes @ 2006-08-14 20:37 UTC (permalink / raw
  To: git

Removes conditional return.

		David

Signed-off-by: David Rientjes <rientjes@google.com>
---
 http-push.c |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/http-push.c b/http-push.c
index 0359ae5..511875f 100644
--- a/http-push.c
+++ b/http-push.c
@@ -2186,10 +2186,7 @@ static int verify_merge_base(unsigned ch
 	struct commit *branch = lookup_commit(branch_sha1);
 	struct commit_list *merge_bases = get_merge_bases(head, branch, 1);
 
-	if (merge_bases && !merge_bases->next && merge_bases->item == branch)
-		return 1;
-
-	return 0;
+	return (merge_bases && !merge_bases->next && merge_bases->item == branch)
 }
 
 static int delete_remote_branch(char *pattern, int force)
-- 
1.4.2.g89bb-dirty

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-14 20:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-14 20:37 [PATCH 22/28] http-push.c cleanup David Rientjes

Code repositories for project(s) associated with this public inbox

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).