mirror of
https://github.com/git/git.git
synced 2024-05-10 10:46:08 +02:00
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>
This commit is contained in:
parent
4da504608e
commit
cb21d8f032
|
@ -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…
Reference in New Issue