Remove ContainsKey as it was really unneeded

This commit is contained in:
Matt Nadareski
2025-01-14 20:26:57 -05:00
parent 6e365c3f03
commit e05c6c35eb
3 changed files with 6 additions and 32 deletions

View File

@@ -104,13 +104,9 @@ namespace SabreTools.DatTools
// Apply the mappings
foreach (string machine in machines)
{
// If the key doesn't exist, continue
if (!datFile.Items.ContainsKey(machine))
continue;
// Get the list of DatItems for the machine
var datItems = datFile.GetItemsForBucket(machine);
if (datItems == null)
List<DatItem> datItems = datFile.GetItemsForBucket(machine);
if (datItems.Count == 0)
continue;
// Try to get the map values, if possible