Browse Source

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>
maint
Junio C Hamano 15 years ago
parent
commit
cb21d8f032
  1. 2
      transport.c

2
transport.c

@ -921,7 +921,7 @@ struct transport *transport_get(struct remote *remote, const char *url) @@ -921,7 +921,7 @@ struct transport *transport_get(struct remote *remote, const char *url)
ret->remote = remote;
helper = remote->foreign_vcs;

if (!url && remote && remote->url)
if (!url && remote->url)
url = remote->url[0];
ret->url = url;


Loading…
Cancel
Save