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

@@ -191,7 +191,7 @@ namespace SabreTools.DatFiles
lock (key)
{
// If the value is null or empty, just return
if (value == null || !value.Any())
if (value == null || value.Count == 0)
return;
// Ensure the key exists