wrap File.Delete on catch

This commit is contained in:
rootdarkarchon
2022-12-11 20:44:42 +01:00
parent fc4cee1a3a
commit a807a874f0

View File

@@ -73,7 +73,11 @@ public partial class ApiController
} }
catch catch
{ {
File.Delete(fileName); try
{
File.Delete(fileName);
}
catch { }
throw; throw;
} }
} }