mirror of
https://github.com/kwsch/PKHeX.git
synced 2026-10-01 03:06:49 -05:00
Remove unnecessary null check
No paths into the method are null parameters
This commit is contained in:
@@ -256,9 +256,8 @@ private void SetPKMFormatExtraBytes(PKM pk)
|
||||
|
||||
public void PopulateFields(PKM pk, bool focus = true, bool skipConversionCheck = false) => LoadFieldsFromPKM(pk, focus, skipConversionCheck);
|
||||
|
||||
private void LoadFieldsFromPKM(PKM? pk, bool focus = true, bool skipConversionCheck = true)
|
||||
private void LoadFieldsFromPKM(PKM pk, bool focus = true, bool skipConversionCheck = true)
|
||||
{
|
||||
if (pk == null) { WinFormsUtil.Error(MsgPKMLoadNull); return; }
|
||||
if (focus)
|
||||
Tab_Main.Focus();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user