Skip to content

Commit

Permalink
[skip ci] format
Browse files Browse the repository at this point in the history
  • Loading branch information
nopara73 committed Nov 17, 2018
1 parent ff5ffa2 commit 4abcd8b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions WalletWasabi/TorSocks5/TorSocks5Client.cs
Expand Up @@ -60,9 +60,7 @@ public bool IsConnected
internal TorSocks5Client(IPEndPoint ipEndPoint)
{
TorSocks5EndPoint = ipEndPoint;
TcpClient = ipEndPoint != null
? new TcpClient(ipEndPoint.AddressFamily)
: new TcpClient();
TcpClient = ipEndPoint is null ? new TcpClient() : new TcpClient(ipEndPoint.AddressFamily);
AsyncLock = new AsyncLock();
}

Expand Down Expand Up @@ -237,7 +235,7 @@ internal async Task ConnectToDestinationAsync(string host, int port)
using (await AsyncLock.LockAsync())
{
TcpClient?.Dispose();
if(IPAddress.TryParse(host, out IPAddress ip))
if (IPAddress.TryParse(host, out IPAddress ip))
{
TcpClient = new TcpClient(ip.AddressFamily);
}
Expand Down

0 comments on commit 4abcd8b

Please sign in to comment.