Removed extension check switch.

This commit is contained in:
Ottermandias 2021-02-16 12:29:42 +01:00
parent 5f9281384d
commit b307a787db

View file

@ -50,16 +50,7 @@ namespace Penumbra.Importer
{
CurrentModPack = modPackFile.Name;
switch( modPackFile.Extension )
{
case ".ttmp":
case ".ttmp2":
VerifyVersionAndImport(modPackFile);
break;
default:
throw new ArgumentException( $"Unrecognized modpack format: {modPackFile.Extension}", nameof(modPackFile) );
}
VerifyVersionAndImport(modPackFile);
State = ImporterState.Done;
}