Skip to content

Commit

Permalink
fix main empty list error
Browse files Browse the repository at this point in the history
  • Loading branch information
yangxuilyx committed Jan 13, 2025
1 parent 6ad0f65 commit cf556ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/c#/GeneralUpdate.ClientCore/GeneralClientBootstrap.cs
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ private async Task ExecuteWorkflowAsync()
BlackListManager.Instance?.AddBlackFiles(_configInfo.BlackFiles);
BlackListManager.Instance?.AddBlackFileFormats(_configInfo.BlackFormats);
BlackListManager.Instance?.AddSkipDirectorys(_configInfo.SkipDirectorys);

_configInfo.Encoding = GetOption(UpdateOption.Encoding) ?? Encoding.Default;
_configInfo.Format = GetOption(UpdateOption.Format) ?? Format.ZIP;
_configInfo.DownloadTimeOut = GetOption(UpdateOption.DownloadTimeOut) == 0
Expand All @@ -185,7 +185,7 @@ private async Task ExecuteWorkflowAsync()
if (_configInfo.IsMainUpdate)
{
_configInfo.UpdateVersions = upgradeResp.Body.OrderBy(x => x.ReleaseDate).ToList();
_configInfo.LastVersion = _configInfo.UpdateVersions.Last().Version;
_configInfo.LastVersion = mainResp.Body.OrderBy(x => x.ReleaseDate).Last().Version;

var failed = CheckFail(_configInfo.LastVersion);
if (failed) return;
Expand Down

0 comments on commit cf556ec

Please sign in to comment.