Improve for loop and remove unnecessary assignement
MODIFY
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerViewModel.cs
WalletWasabi.Gui/Tabs/WalletManager/WalletManagerViewModel.cs
@@ -151,12 +151,10 @@ namespace WalletWasabi.Gui.Tabs.WalletManager
else if (hwis.Any(x => x.Type == HardwareWalletType.Ledger && x.Ready))
{
LoadWalletViewModelHardware.SetWarningMessage("To have a smooth user experience consider turning off your Ledger screensaver.");
- break;
}
- else
- {
+
break;
- }
+
//foreach (var hwi in hwis)
//{
// // https://github.com/zkSNACKs/WalletWasabi/issues/1344#issuecomment-484607454

MODIFY
WalletWasabi/Services/UtxoReferee.cs
WalletWasabi/Services/UtxoReferee.cs
@@ -104,11 +104,7 @@ namespace WalletWasabi.Services
}
var isNoted = true;
- if (forceNoted)
- {
- isNoted = true;
- }
- else
+ if (!forceNoted)
{
if (RoundConfig.DosNoteBeforeBan.Value)
{

Improve for loop and remove unnecessary assignement