ui(client): formatting & code improvements
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user