mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
Don't run extras if there are no extras
This commit is contained in:
@@ -88,6 +88,10 @@ namespace SabreTools.Filtering
|
|||||||
/// <returns>True if the extras were applied, false on error</returns>
|
/// <returns>True if the extras were applied, false on error</returns>
|
||||||
public bool ApplyExtras(DatFile datFile, bool throwOnError = false)
|
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");
|
InternalStopwatch watch = new InternalStopwatch("Applying extra mappings to DAT");
|
||||||
|
|
||||||
try
|
try
|
||||||
|
|||||||
Reference in New Issue
Block a user