From 8b42b36825edd5838ebdb8f9c0f2b72753d2a56c Mon Sep 17 00:00:00 2001 From: sneurlax Date: Mon, 7 Aug 2023 12:19:09 -0500 Subject: [PATCH] remove redundant check --- lib/networking/http.dart | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/lib/networking/http.dart b/lib/networking/http.dart index e2772b9ba..7203c91e2 100644 --- a/lib/networking/http.dart +++ b/lib/networking/http.dart @@ -54,14 +54,12 @@ abstract class HTTP { final httpClient = HttpClient(); try { if (routeOverTor) { - if (routeOverTor) { - SocksTCPClient.assignToHttpClient(httpClient, [ - ProxySettings( - InternetAddress.loopbackIPv4, - TorService.sharedInstance.port, - ), - ]); - } + SocksTCPClient.assignToHttpClient(httpClient, [ + ProxySettings( + InternetAddress.loopbackIPv4, + TorService.sharedInstance.port, + ), + ]); } final HttpClientRequest request = await httpClient.postUrl( url,