code cosmetic

This commit is contained in:
2024-06-18 10:59:08 +02:00
parent deb14caf24
commit 0f3e93bfff
4 changed files with 9 additions and 13 deletions

View File

@@ -18,7 +18,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, string localPath)
public delegate void CheckingProgressUpdatedEventHandler(int toCheck, int processed);
private HttpClient httpClient = new();
private readonly HttpClient httpClient = new();
~ModpackInstaller()
{
@@ -37,7 +37,7 @@ public class ModpackInstaller(ModpackConfig updateConfig, string localPath)
return InstallInfos.Parse(content);
}
public async Task<UpdateCheckResult> Check(bool ignoreRevmoedFiles)
public async Task<UpdateCheckResult> Check()
{
var result = new UpdateCheckResult();
@@ -106,10 +106,8 @@ public class ModpackInstaller(ModpackConfig updateConfig, string localPath)
{
string destFilePath = Path.Combine(localPath, iaction.DestPath);
if (iaction is UpdateAction)
if (iaction is UpdateAction uaction)
{
UpdateAction uaction = (UpdateAction)iaction;
switch (uaction.Type)
{
case UpdateActionType.Update: