Simplify default expression
MODIFY
WalletWasabi/Services/TransactionProcessor.cs
WalletWasabi/Services/TransactionProcessor.cs
@@ -51,7 +51,7 @@ namespace WalletWasabi.Services
if (isFoundTx)
{
SmartTransaction foundTx = TransactionCache.FirstOrDefault(x => x == tx);
- if (foundTx != default(SmartTransaction)) // Must check again, because it's a concurrent collection!
+ if (foundTx != default) // Must check again, because it's a concurrent collection!
{
foundTx.SetHeight(tx.Height, tx.BlockHash, tx.BlockIndex);
walletRelevant = true;

MODIFY
WalletWasabi/Services/WalletService.cs
WalletWasabi/Services/WalletService.cs
@@ -200,7 +200,7 @@ namespace WalletWasabi.Services
}
var txToRemove = TryGetTxFromCache(toRemove.TransactionId);
- if (txToRemove != default(SmartTransaction))
+ if (txToRemove != default)
{
TransactionCache.TryRemove(txToRemove);
}

Simplify default expression