Handle some inefficiencies found via messages

This commit is contained in:
Matt Nadareski
2024-03-19 14:35:43 -04:00
parent e4c7bbe4e1
commit 7c549481e4
6 changed files with 19 additions and 14 deletions

View File

@@ -320,7 +320,7 @@ namespace SabreTools.DatFiles
private void ConvertMachines(Models.Metadata.Machine[]? items, string filename, int indexId, bool statsOnly)
{
// If the array is invalid, we can't do anything
if (items == null || !items.Any())
if (items == null || items.Length == 0)
return;
// Loop through the machines and add