Fix double call to pure method

This commit is contained in:
YoshiRulz 2022-09-25 22:26:41 +10:00
parent 1f9337d225
commit b2bacdecd2
No known key found for this signature in database
GPG Key ID: C4DE31C245353FB7
1 changed files with 1 additions and 3 deletions

View File

@ -33,9 +33,7 @@ namespace BizHawk.Client.Common.cheats
public MemoryDomain CheatDomain()
{
var domain = CheatDomainName();
return CheatDomainName() == null
? _domains.SystemBus
: _domains[domain]!;
return domain is null ? _domains.SystemBus : _domains[domain]!;
}
private string CheatDomainName() => _systemId switch