File tree Expand file tree Collapse file tree
src/c#/GeneralUpdate.ClientCore Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -155,7 +155,7 @@ private async Task ExecuteWorkflowAsync()
155155
156156 //If the main program needs to be forced to update, the skip will not take effect.
157157 var isForcibly = CheckForcibly ( mainResp . Body ) || CheckForcibly ( upgradeResp . Body ) ;
158- if ( CanSkip ( isForcibly , GetOption ( UpdateOption . EnableSilentUpdate ) ?? false ) ) return ;
158+ if ( CanSkip ( isForcibly ) ) return ;
159159
160160 //black list initialization.
161161 BlackListManager . Instance ? . AddBlackFiles ( _configInfo . BlackFiles ) ;
@@ -329,9 +329,8 @@ private bool CheckForcibly(List<VersionInfo>? versions)
329329 /// User decides if update is required.
330330 /// </summary>
331331 /// <returns>is false to continue execution.</returns>
332- private bool CanSkip ( bool isForcibly , bool enableSilentUpdate )
332+ private bool CanSkip ( bool isForcibly )
333333 {
334- if ( enableSilentUpdate ) return false ;
335334 if ( isForcibly ) return false ;
336335 return _customSkipOption ? . Invoke ( ) == true ;
337336 }
You can’t perform that action at this time.
0 commit comments