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

Commit 36115fb

Browse files
committed
Fix nulls being passed around
1 parent 38f85a5 commit 36115fb

File tree

3 files changed

+3
-7
lines changed

3 files changed

+3
-7
lines changed

src/GitHub.Api/Application/ApiClient.cs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,7 @@ public ApiClient(UriString hostUrl, IKeychain keychain, IProcessManager processM
3232
this.taskManager = taskManager;
3333
this.nodeJsExecutablePath = nodeJsExecutablePath;
3434
this.octorunScriptPath = octorunScriptPath;
35-
loginManager = new LoginManager(keychain,
36-
processManager: processManager,
37-
taskManager: taskManager,
38-
nodeJsExecutablePath: nodeJsExecutablePath,
39-
octorunScript: octorunScriptPath);
35+
loginManager = new LoginManager(keychain, processManager, taskManager, nodeJsExecutablePath, octorunScriptPath);
4036
}
4137

4238
public ITask Logout(UriString host)

src/GitHub.Api/Authentication/LoginManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class LoginManager : ILoginManager
3434
/// <param name="nodeJsExecutablePath"></param>
3535
/// <param name="octorunScript"></param>
3636
public LoginManager(
37-
IKeychain keychain, IProcessManager processManager = null, ITaskManager taskManager = null,
37+
IKeychain keychain, IProcessManager processManager, ITaskManager taskManager,
3838
NPath? nodeJsExecutablePath = null, NPath? octorunScript = null)
3939
{
4040
Guard.ArgumentNotNull(keychain, nameof(keychain));

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/Window.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,7 +816,7 @@ private void SignOut(object obj)
816816
host = UriString.ToUriString(HostAddress.GitHubDotComHostAddress.WebUri);
817817
}
818818

819-
var apiClient = new ApiClient(host, Platform.Keychain, null, null, NPath.Default, NPath.Default);
819+
var apiClient = new ApiClient(host, Platform.Keychain, Manager.ProcessManager, Manager.TaskManager, Environment.NodeJsExecutablePath, Environment.OctorunScriptPath);
820820
apiClient.Logout(host);
821821
}
822822

0 commit comments

Comments
 (0)