Start with .NET Core 3.0 code enhancements

This commit is contained in:
JustArchi
2019-09-27 20:43:11 +02:00
parent cd783b9865
commit 067293eeb5
9 changed files with 295 additions and 293 deletions

View File

@@ -259,10 +259,10 @@ namespace ArchiSteamFarm {
}
try {
using (ZipArchive zipArchive = new ZipArchive(new MemoryStream(response.Content))) {
if (!UpdateFromArchive(zipArchive, SharedInfo.HomeDirectory)) {
ArchiLogger.LogGenericError(Strings.WarningFailed);
}
using ZipArchive zipArchive = new ZipArchive(new MemoryStream(response.Content));
if (!UpdateFromArchive(zipArchive, SharedInfo.HomeDirectory)) {
ArchiLogger.LogGenericError(Strings.WarningFailed);
}
} catch (Exception e) {
ArchiLogger.LogGenericException(e);