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

transport_get(): drop unnecessary check for !remote

At the beginning of the function we make sure remote is not NULL, and the remainder of the funciton already depends on it. Signed-off-by: Junio C Hamano <gitster@pobox.com>

Junio C Hamano committed Jan 27, 2010 at 12:22 UTC cb21d8f032b3784ffa7b340abbafb8c4b122d2cc
1 file changed +1 -1
transport.c
+1 -1
@@ -921,7 +921,7 @@ struct transport *transport_get(struct remote *remote, const char *url)
921 ret->remote = remote;
922 helper = remote->foreign_vcs;
923
924 - if (!url && remote && remote->url)
924 + if (!url && remote->url)
925 url = remote->url[0];
926 ret->url = url;
927