Reduce Linq usage across entire project

This commit is contained in:
Matt Nadareski
2024-10-19 21:41:08 -04:00
parent 1c079aab18
commit b87b05f828
36 changed files with 215 additions and 205 deletions

View File

@@ -782,7 +782,7 @@ namespace SabreTools.DatTools
{
// Get the current machine
var items = datFile.Items[machine];
if (items == null || !items.Any())
if (items == null || items.Count == 0)
{
logger.Error($"{machine} contains no items and will be skipped");
continue;