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

Commit 872389b

Browse files
Code cleanup
1 parent 3ae57ae commit 872389b

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/GitHub.Api/Tasks/OctorunTask.cs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -71,27 +71,7 @@ public OctorunTask(CancellationToken token, IEnvironment environment,
7171
this.pathToNodeJs = environment.NodeJsExecutablePath;
7272
this.pathToOctorunJs = environment.OctorunScriptPath;
7373
this.arguments = $"\"{pathToOctorunJs}\" {arguments}";
74-
7574
this.userToken = userToken;
76-
77-
// var cloneUrl = environment.Repository?.CloneUrl;
78-
// var host = String.IsNullOrEmpty(cloneUrl)
79-
// ? UriString.ToUriString(HostAddress.GitHubDotComHostAddress.WebUri)
80-
// : new UriString(cloneUrl.ToRepositoryUri()
81-
// .GetComponents(UriComponents.SchemeAndServer, UriFormat.SafeUnescaped));
82-
//
83-
// var adapter = keychain.Connect(host);
84-
// if (adapter.Credential?.Token != null)
85-
// {
86-
// userToken = adapter.Credential.Token;
87-
// }
88-
// else
89-
// {
90-
// // use a cached adapter if there is one filled out
91-
// adapter = keychain.LoadFromSystem(host);
92-
// if (adapter != null)
93-
// userToken = adapter.Credential.Token;
94-
// }
9575
}
9676

9777
public override void Configure(ProcessStartInfo psi)

0 commit comments

Comments
 (0)