[Utilities] Only return BaseArchives

This commit is contained in:
Matt Nadareski
2018-02-23 16:55:57 -08:00
parent 58dcc43d06
commit 1340847047

View File

@@ -440,7 +440,7 @@ namespace SabreTools.Library.Tools
/// </summary> /// </summary>
/// <param name="input">Name of the file to create the archive from</param> /// <param name="input">Name of the file to create the archive from</param>
/// <returns>Archive object representing the inputs</returns> /// <returns>Archive object representing the inputs</returns>
public static Folder GetArchive(string input) public static BaseArchive GetArchive(string input)
{ {
BaseArchive archive = null; BaseArchive archive = null;
@@ -485,7 +485,7 @@ namespace SabreTools.Library.Tools
/// </summary> /// </summary>
/// <param name="archiveType">SharpCompress.Common.ArchiveType representing the archive to create</param> /// <param name="archiveType">SharpCompress.Common.ArchiveType representing the archive to create</param>
/// <returns>Archive object representing the inputs</returns> /// <returns>Archive object representing the inputs</returns>
public static Folder GetArchive(FileType archiveType) public static BaseArchive GetArchive(FileType archiveType)
{ {
switch (archiveType) switch (archiveType)
{ {