Skip to content

Commit

Permalink
transport_get(): drop unnecessary check for !remote
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Junio C Hamano committed Jan 27, 2010
1 parent 4da5046 commit cb21d8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion transport.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit cb21d8f

Please sign in to comment.