Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit b67fe9b

Browse files
Update settings retrieval
1 parent c4f5276 commit b67fe9b

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/GitHub.Api/Application/ApplicationManagerBase.cs

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,7 @@ protected void Initialize()
4242
Platform = new Platform(Environment);
4343

4444
LogHelper.TracingEnabled = UserSettings.Get(Constants.TraceLoggingKey, false);
45-
46-
int webTimeout;
47-
if (int.TryParse(UserSettings.Get(Constants.WebTimeoutKey), out webTimeout))
48-
{
49-
ApplicationConfiguration.WebTimeout = webTimeout;
50-
}
51-
45+
ApplicationConfiguration.WebTimeout = UserSettings.Get(Constants.WebTimeoutKey, ApplicationConfiguration.WebTimeout);
5246
ProcessManager = new ProcessManager(Environment, Platform.GitEnvironment, CancellationToken);
5347
Platform.Initialize(ProcessManager, TaskManager);
5448
GitClient = new GitClient(Environment, ProcessManager, TaskManager.Token);

0 commit comments

Comments
 (0)