remove redundant null check before assigning null
This commit is contained in:
parent
ec5e88c808
commit
c730a78994
|
@ -61,10 +61,7 @@ namespace BizHawk.Emulation.Cores.Computers.AmstradCPC
|
|||
|
||||
public void Dispose()
|
||||
{
|
||||
if (_machine != null)
|
||||
{
|
||||
_machine = null;
|
||||
}
|
||||
_machine = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -61,10 +61,7 @@ namespace BizHawk.Emulation.Cores.Computers.SinclairSpectrum
|
|||
|
||||
public void Dispose()
|
||||
{
|
||||
if (_machine != null)
|
||||
{
|
||||
_machine = null;
|
||||
}
|
||||
_machine = null;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue