Remove Do() and replace with foreach()

This commit is contained in:
tomas
2022-08-19 22:15:00 +02:00
committed by abcdefg30
parent 92478a219e
commit ac623d784a
6 changed files with 22 additions and 21 deletions

View File

@@ -463,7 +463,9 @@ namespace OpenRA.Mods.Common.Widgets.Logic
text: $"Delete {list.Count} replays?",
onConfirm: () =>
{
list.ForEach(DeleteReplay);
foreach (var replayMetadata in list)
DeleteReplay(replayMetadata);
if (selectedReplay == null)
SelectFirstVisibleReplay();
},