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

@@ -72,8 +72,12 @@ public partial class ApiController
} }
} }
catch catch
{
try
{ {
File.Delete(fileName); File.Delete(fileName);
}
catch { }
throw; throw;
} }
} }