code cosmetic
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user