From b2bacdecd29492d4a4d57a4dbebfacbb0591a25f Mon Sep 17 00:00:00 2001 From: YoshiRulz Date: Sun, 25 Sep 2022 22:26:41 +1000 Subject: [PATCH] Fix double call to pure method --- src/BizHawk.Client.Common/cheats/GameSharkDecoder.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/BizHawk.Client.Common/cheats/GameSharkDecoder.cs b/src/BizHawk.Client.Common/cheats/GameSharkDecoder.cs index fb7f310e19..ea426ba55b 100644 --- a/src/BizHawk.Client.Common/cheats/GameSharkDecoder.cs +++ b/src/BizHawk.Client.Common/cheats/GameSharkDecoder.cs @@ -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