зеркало из https://github.com/microsoft/git.git
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:
Родитель
4da504608e
Коммит
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;
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче