mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-06 17:10:13 +00:00
Fix some disposable patterns
This commit is contained in:
@@ -259,7 +259,8 @@ namespace ArchiSteamFarm {
|
||||
}
|
||||
|
||||
try {
|
||||
using ZipArchive zipArchive = new ZipArchive(new MemoryStream(response.Content));
|
||||
using MemoryStream memoryStream = new MemoryStream(response.Content);
|
||||
using ZipArchive zipArchive = new ZipArchive(memoryStream);
|
||||
|
||||
if (!UpdateFromArchive(zipArchive, SharedInfo.HomeDirectory)) {
|
||||
ArchiLogger.LogGenericError(Strings.WarningFailed);
|
||||
|
||||
Reference in New Issue
Block a user