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:
Junio C Hamano 2010-01-27 12:22:37 -08:00
Родитель 4da504608e
Коммит cb21d8f032
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -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;