Skip to content

Commit 2f7344b

Browse files
JusterZhuCopilot
andauthored
Update src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 51ef4f2 commit 2f7344b

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -232,10 +232,8 @@ private void ApplyRuntimeOptions()
232232
{
233233
_configInfo.Encoding = GetOption(UpdateOption.Encoding) ?? Encoding.Default;
234234
_configInfo.Format = GetOption(UpdateOption.Format) ?? Format.ZIP;
235-
_configInfo.DownloadTimeOut =
236-
GetOption(UpdateOption.DownloadTimeOut) == 0
237-
? 60
238-
: GetOption(UpdateOption.DownloadTimeOut);
235+
var downloadTimeoutOption = GetOption(UpdateOption.DownloadTimeOut);
236+
_configInfo.DownloadTimeOut = downloadTimeoutOption ?? 60;
239237
_configInfo.DriveEnabled = GetOption(UpdateOption.Drive) ?? false;
240238
_configInfo.PatchEnabled = GetOption(UpdateOption.Patch) ?? true;
241239
}

0 commit comments

Comments
 (0)