Skip to content

Commit cf556ec

Browse files
author
yangxuilyx
committed
fix main empty list error
1 parent 6ad0f65 commit cf556ec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/c#/GeneralUpdate.ClientCore/GeneralClientBootstrap.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ private async Task ExecuteWorkflowAsync()
171171
BlackListManager.Instance?.AddBlackFiles(_configInfo.BlackFiles);
172172
BlackListManager.Instance?.AddBlackFileFormats(_configInfo.BlackFormats);
173173
BlackListManager.Instance?.AddSkipDirectorys(_configInfo.SkipDirectorys);
174-
174+
175175
_configInfo.Encoding = GetOption(UpdateOption.Encoding) ?? Encoding.Default;
176176
_configInfo.Format = GetOption(UpdateOption.Format) ?? Format.ZIP;
177177
_configInfo.DownloadTimeOut = GetOption(UpdateOption.DownloadTimeOut) == 0
@@ -185,7 +185,7 @@ private async Task ExecuteWorkflowAsync()
185185
if (_configInfo.IsMainUpdate)
186186
{
187187
_configInfo.UpdateVersions = upgradeResp.Body.OrderBy(x => x.ReleaseDate).ToList();
188-
_configInfo.LastVersion = _configInfo.UpdateVersions.Last().Version;
188+
_configInfo.LastVersion = mainResp.Body.OrderBy(x => x.ReleaseDate).Last().Version;
189189

190190
var failed = CheckFail(_configInfo.LastVersion);
191191
if (failed) return;

0 commit comments

Comments
 (0)