@matheusbsbs / matheus-bagliano / commits / 9e0ec82cac
Fork 0

builtin-push.c cleanup

Removes conditional return in builtin-push.c 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:26 UTC 9e0ec82cac84e6963d7e4aa229b7464daaed4ef8
1 file changed +2 -4
builtin-push.c
+2 -4
@@ -32,10 +32,8 @@ static int expand_one_ref(const char *ref, const unsigned char *sha1)
32 /* Ignore the "refs/" at the beginning of the refname */
33 ref += 5;
34
35 - if (strncmp(ref, "tags/", 5))
36 - return 0;
37 -
38 - add_refspec(strdup(ref));
35 + if (!strncmp(ref, "tags/", 5))
36 + add_refspec(strdup(ref));
37 return 0;
38 }
39