Reduce indentation in `Bk2Controller.SetFromMnemonic`

This commit is contained in:
YoshiRulz 2024-07-20 13:41:49 +10:00
parent 151491c844
commit cee9661f0e
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 17 additions and 19 deletions

View File

@ -79,8 +79,7 @@ namespace BizHawk.Client.Common
public void SetFromMnemonic(string mnemonic)
{
if (!string.IsNullOrWhiteSpace(mnemonic))
{
if (string.IsNullOrWhiteSpace(mnemonic)) return;
var iterator = 0;
foreach (var key in ControlsOrdered)
@ -107,7 +106,6 @@ namespace BizHawk.Client.Common
}
}
}
}
public void SetBool(string buttonName, bool value)
{