Use new syntax.
MODIFY
WalletWasabi/Tor/Socks5/TorSocks5Client.cs
WalletWasabi/Tor/Socks5/TorSocks5Client.cs
@@ -392,13 +392,13 @@ namespace WalletWasabi.Tor.Socks5
{
try
{
- if (TcpClient is { })
+ if (TcpClient is { } tcpClient)
{
- if (TcpClient.Connected)
+ if (tcpClient.Connected)
{
Stream?.Dispose();
}
- TcpClient?.Dispose();
+ tcpClient.Dispose();
}
}
catch (Exception ex)

Use new syntax.