From 9fd7ff7e368dae0eeb0c647ffda5eeb82a56d113 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 6 Jan 2025 12:32:49 -0500 Subject: [PATCH] Use foreach instead of unnecessary for --- SabreTools.DatItems/DatItemTool.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/SabreTools.DatItems/DatItemTool.cs b/SabreTools.DatItems/DatItemTool.cs index 24cb5558..37229fb7 100644 --- a/SabreTools.DatItems/DatItemTool.cs +++ b/SabreTools.DatItems/DatItemTool.cs @@ -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;