ui(client): formatting & code improvements

This commit is contained in:
2025-11-07 15:22:28 +01:00
parent 4baf571713
commit 1c070891f1
3 changed files with 13 additions and 16 deletions

View File

@@ -54,7 +54,7 @@ public class AppUpdater(string updateUrl)
}
// Download the new file
using (var tempFileStream = new FileStream(tempFileName, FileMode.Create, FileAccess.ReadWrite))
await using (var tempFileStream = new FileStream(tempFileName, FileMode.Create, FileAccess.ReadWrite))
{
Stream? downloadStream = null;
try
@@ -68,7 +68,8 @@ public class AppUpdater(string updateUrl)
}
finally
{
downloadStream?.Dispose();
if (downloadStream != null)
await downloadStream.DisposeAsync();
}
}