Skip to content

Commit d07a0dc

Browse files
committed
Remove useless condition
1 parent 2934b44 commit d07a0dc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/transports/smart.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,8 +226,7 @@ static int git_smart__connect(
226226
t->url = git__strdup(url);
227227
GIT_ERROR_CHECK_ALLOC(t->url);
228228

229-
if (t->proxy.url)
230-
git_proxy_options_clear(&t->proxy);
229+
git_proxy_options_clear(&t->proxy);
231230

232231
if (git_proxy_options_dup(&t->proxy, proxy) < 0)
233232
return -1;

0 commit comments

Comments
 (0)