More unnecessary null checks

This commit is contained in:
Matt Nadareski
2025-01-10 22:03:50 -05:00
parent 20ec4edeb8
commit b869b324bb
3 changed files with 5 additions and 9 deletions

View File

@@ -87,7 +87,7 @@ namespace SabreTools.DatTools
public bool ApplyExtras(DatFile datFile, bool throwOnError = false)
{
// If we have no extras, don't attempt to apply and just return true
if (Items == null || Items.Count == 0)
if (Items.Count == 0)
return true;
var watch = new InternalStopwatch("Applying extra mappings to DAT");
@@ -150,7 +150,7 @@ namespace SabreTools.DatTools
public bool ApplyExtrasDB(DatFile datFile, bool throwOnError = false)
{
// If we have no extras, don't attempt to apply and just return true
if (Items == null || Items.Count == 0)
if (Items.Count == 0)
return true;
var watch = new InternalStopwatch("Applying extra mappings to DAT");