remove redundant check

This commit is contained in:
sneurlax 2023-08-07 12:19:09 -05:00
parent 9965d793bd
commit 8b42b36825

View file

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