use proper pattern matching
MODIFY
WalletWasabi.Backend/Global.cs
WalletWasabi.Backend/Global.cs
@@ -83,7 +83,7 @@ public class Global : IDisposable
var blockNotifier = HostedServices.Get<BlockNotifier>();
- bool coinVerifierEnabled = CoordinatorParameters.RuntimeCoordinatorConfig.RiskFlags?.Any() ?? false;
+ bool coinVerifierEnabled = CoordinatorParameters.RuntimeCoordinatorConfig.RiskFlags?.Any() is true;
CoinVerifier? coinVerifier = null;
if (coinVerifierEnabled)
{

MODIFY
WalletWasabi/WabiSabi/Backend/Banning/CoinVerifier.cs
WalletWasabi/WabiSabi/Backend/Banning/CoinVerifier.cs
@@ -109,7 +109,7 @@ public class CoinVerifier
bool shouldBan = false;
var coinflaglist = response.Cscore_section.Cscore_info;
- shouldBan = coinflaglist.Any(cscoreInfo => WabiSabiConfig.RiskFlags?.Contains(cscoreInfo.Id) ?? false);
+ shouldBan = coinflaglist.Any(cscoreInfo => WabiSabiConfig.RiskFlags?.Contains(cscoreInfo.Id) is true);
return shouldBan;
}

use proper pattern matching