Use is instead of ==
MODIFY
WalletWasabi.Gui/Controls/EditableTextBlock.cs
WalletWasabi.Gui/Controls/EditableTextBlock.cs
@@ -67,8 +67,7 @@ namespace WalletWasabi.Gui.Controls
else
{
var hit = this.InputHitTest(e.GetPosition(this));
-
- if (hit == null)
+ if (hit is null)
{
ExitEditMode();
}
@@ -84,8 +83,7 @@ namespace WalletWasabi.Gui.Controls
if (InEditMode)
{
var hit = this.InputHitTest(e.GetPosition(this));
-
- if (hit == null)
+ if (hit is null)
{
ExitEditMode();
}

MODIFY
WalletWasabi.Gui/Global.cs
WalletWasabi.Gui/Global.cs
@@ -324,7 +324,7 @@ namespace WalletWasabi.Gui
// of course).
// On the other side, increasing this number forces users that do not need to discover more peers
// to spend resources (CPU/bandwith) to discover new peers.
- needsToDiscoverPeers = Config.UseTor == true || AddressManager.Count < 500;
+ needsToDiscoverPeers = Config.UseTor is true || AddressManager.Count < 500;
Logger.LogInfo<AddressManager>($"Loaded {nameof(AddressManager)} from `{AddressManagerFilePath}`.");
}
catch (DirectoryNotFoundException ex)

MODIFY
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
WalletWasabi.Gui/ViewModels/AddressViewModel.cs
@@ -41,7 +41,7 @@ namespace WalletWasabi.Gui.ViewModels
{
try
{
- if (x == true && QrCode is null)
+ if (x is true && QrCode is null)
{
var encoder = new QrEncoder();
encoder.TryEncode(Address, out var qrCode);

Use is instead of ==