Commit d07a0dc1f1b3e2afc2056a9c120fb58941372580

punkymaniac 2021-06-04T16:34:32

Remove useless condition

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/src/transports/smart.c b/src/transports/smart.c
index 89ad05b..587f143 100644
--- a/src/transports/smart.c
+++ b/src/transports/smart.c
@@ -226,8 +226,7 @@ static int git_smart__connect(
 	t->url = git__strdup(url);
 	GIT_ERROR_CHECK_ALLOC(t->url);
 
-	if (t->proxy.url)
-		git_proxy_options_clear(&t->proxy);
+	git_proxy_options_clear(&t->proxy);
 
 	if (git_proxy_options_dup(&t->proxy, proxy) < 0)
 		return -1;