From c730a789943c608f868c7aa63de75e4cecfef842 Mon Sep 17 00:00:00 2001 From: adelikat Date: Wed, 16 Dec 2020 15:13:04 -0600 Subject: [PATCH] remove redundant null check before assigning null --- .../Computers/AmstradCPC/AmstradCPC.IEmulator.cs | 5 +---- .../Computers/SinclairSpectrum/ZXSpectrum.IEmulator.cs | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/src/BizHawk.Emulation.Cores/Computers/AmstradCPC/AmstradCPC.IEmulator.cs b/src/BizHawk.Emulation.Cores/Computers/AmstradCPC/AmstradCPC.IEmulator.cs index 3a97458b45..71422a0b69 100644 --- a/src/BizHawk.Emulation.Cores/Computers/AmstradCPC/AmstradCPC.IEmulator.cs +++ b/src/BizHawk.Emulation.Cores/Computers/AmstradCPC/AmstradCPC.IEmulator.cs @@ -61,10 +61,7 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC public void Dispose() { - if (_machine != null) - { - _machine = null; - } + _machine = null; } } } diff --git a/src/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/ZXSpectrum.IEmulator.cs b/src/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/ZXSpectrum.IEmulator.cs index dd5681d042..8d8ca3e203 100644 --- a/src/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/ZXSpectrum.IEmulator.cs +++ b/src/BizHawk.Emulation.Cores/Computers/SinclairSpectrum/ZXSpectrum.IEmulator.cs @@ -61,10 +61,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum public void Dispose() { - if (_machine != null) - { - _machine = null; - } + _machine = null; } } }