We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 51ef4f2 commit 2f7344bCopy full SHA for 2f7344b
1 file changed
src/c#/GeneralUpdate.Core/GeneralUpdateBootstrap.cs
@@ -232,10 +232,8 @@ private void ApplyRuntimeOptions()
232
{
233
_configInfo.Encoding = GetOption(UpdateOption.Encoding) ?? Encoding.Default;
234
_configInfo.Format = GetOption(UpdateOption.Format) ?? Format.ZIP;
235
- _configInfo.DownloadTimeOut =
236
- GetOption(UpdateOption.DownloadTimeOut) == 0
237
- ? 60
238
- : GetOption(UpdateOption.DownloadTimeOut);
+ var downloadTimeoutOption = GetOption(UpdateOption.DownloadTimeOut);
+ _configInfo.DownloadTimeOut = downloadTimeoutOption ?? 60;
239
_configInfo.DriveEnabled = GetOption(UpdateOption.Drive) ?? false;
240
_configInfo.PatchEnabled = GetOption(UpdateOption.Patch) ?? true;
241
}
0 commit comments