mirror of
https://github.com/Caraxi/mare.client.git
synced 2025-12-12 22:17:22 +01:00
move GetTempFileName into try catch
This commit is contained in:
parent
f8d5ecc049
commit
8913798870
1 changed files with 2 additions and 1 deletions
|
|
@ -123,9 +123,10 @@ public partial class ApiController
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var fileName = Path.GetTempFileName();
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
var fileName = Path.GetTempFileName();
|
||||||
|
|
||||||
var fileStream = File.Create(fileName);
|
var fileStream = File.Create(fileName);
|
||||||
await using (fileStream.ConfigureAwait(false))
|
await using (fileStream.ConfigureAwait(false))
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue