Use foreach instead of unnecessary for

This commit is contained in:
Matt Nadareski
2025-01-06 12:32:49 -05:00
parent 2fcef27e32
commit 9fd7ff7e36

View File

@@ -285,10 +285,8 @@ namespace SabreTools.DatItems
// Then deduplicate them by checking to see if data matches previous saved roms
int nodumpCount = 0;
for (int f = 0; f < infiles.Count; f++)
foreach (DatItem item in infiles)
{
DatItem item = infiles[f];
// If we somehow have a null item, skip
if (item == null)
continue;