Add rule to remove unnecessary cast
MODIFY
.editorconfig
.editorconfig
@@ -234,6 +234,9 @@ csharp_style_prefer_range_operator = true:error
# IDE0071: Simplify interpolation
dotnet_style_prefer_simplified_interpolation = true:error
+# IDE0004: Remove Unnecessary Cast
+dotnet_diagnostic.IDE0004.severity = error
+
[*.xaml]
indent_style = space
indent_size = 2

MODIFY
WalletWasabi/Wallets/Wallet.cs
WalletWasabi/Wallets/Wallet.cs
@@ -300,7 +300,7 @@ namespace WalletWasabi.Wallets
{
var r when r < (0.9) => LockTime.Zero,
var r when r < (0.9 + 0.075) => tipHeight,
- var r when r < (0.9 + 0.075 + 0.0065) => (uint)(tipHeight + 1),
+ var r when r < (0.9 + 0.075 + 0.0065) => tipHeight + 1,
_ => (uint)(tipHeight - rnd.Next(1, 100))
};
}

Add rule to remove unnecessary cast