From b265c349cae3c2a14b601f4012530edea59aabf2 Mon Sep 17 00:00:00 2001 From: Kurt Date: Wed, 21 Jul 2021 00:58:30 -0700 Subject: [PATCH] Remove unnecessary null check No paths into the method are null parameters --- PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs index 3a138f091..7d7f228b3 100644 --- a/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs +++ b/PKHeX.WinForms/Controls/PKM Editor/PKMEditor.cs @@ -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();