Don't run extras if there are no extras

This commit is contained in:
Matt Nadareski
2021-02-02 15:15:07 -08:00
parent 89bd2772b6
commit 56d0d676f6

View File

@@ -88,6 +88,10 @@ namespace SabreTools.Filtering
/// <returns>True if the extras were applied, false on error</returns>
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.Any())
return true;
InternalStopwatch watch = new InternalStopwatch("Applying extra mappings to DAT");
try