Improved if check

This commit is contained in:
Chomp
2025-01-13 18:51:22 +00:00
parent ac1c026399
commit 572575802f
+2 -2
View File
@@ -1,4 +1,4 @@
using Core.Annotations;
using Core.Annotations;
using Core.Models.Eft.Common;
using Core.Models.Eft.Common.Tables;
using Core.Models.Eft.Profile;
@@ -353,7 +353,7 @@ public class ProfileHelper
{
var items = profile.Inventory.Items;
var secureContainer = items.First(i => i.SlotId == "SecuredContainer");
if (secureContainer != null)
if (secureContainer is not null)
{
// Find and remove container + children
var childItemsInSecureContainer = _itemHelper.FindAndReturnChildrenByItems(items, secureContainer.Id);