remove try catch clause in extract function

This commit is contained in:
Jeddunk 2021-01-13 13:06:28 +01:00
parent 478d5196a6
commit b14e8944c3

View File

@ -103,8 +103,6 @@ namespace auto_creamapi.Services
const string steamApi64Dll = "steam_api64.dll"; const string steamApi64Dll = "steam_api64.dll";
const string steamApiDll = "steam_api.dll"; const string steamApiDll = "steam_api.dll";
MyLogger.Log.Information($@"Start extraction of ""{filename}""..."); MyLogger.Log.Information($@"Start extraction of ""{filename}""...");
try
{
var nonlogBuildPath = Path.Combine(cwd, nonlogBuild); var nonlogBuildPath = Path.Combine(cwd, nonlogBuild);
if (Directory.Exists(nonlogBuildPath)) if (Directory.Exists(nonlogBuildPath))
Directory.Delete(nonlogBuildPath, true); Directory.Delete(nonlogBuildPath, true);
@ -139,11 +137,5 @@ namespace auto_creamapi.Services
Directory.Delete(nonlogBuildPath, true); Directory.Delete(nonlogBuildPath, true);
MyLogger.Log.Information("Extraction done!"); MyLogger.Log.Information("Extraction done!");
} }
catch (Exception e)
{
Console.WriteLine(e);
throw;
}
}
} }
} }