Skip to content

Commit

Permalink
Remove reduntant http client
Browse files Browse the repository at this point in the history
  • Loading branch information
ismayilov-ismayil committed Nov 17, 2023
1 parent 154315a commit fdb9049
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/Agent.Worker/TaskManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ public async Task DownloadNodeRunnerAsync(IExecutionContext executionContext, IE
ArgUtil.NotNull(executionContext, nameof(executionContext));
ArgUtil.NotNull(steps, nameof(steps));

executionContext.Output(StringUtil.Loc("EnsureNodeRunnerExist"));

IEnumerable<Pipelines.TaskStep> tasks = steps.OfType<Pipelines.TaskStep>();

//Download Node 6 runner if needed
Expand Down Expand Up @@ -486,8 +484,6 @@ private async Task InstallNode6Runner(IExecutionContext executionContext)

Trace.Info($"Downloading Node 6 runner from: {downloadUrl}");

using var client = new HttpClient();
var response = await client.GetAsync(downloadUrl);
string filePath = Path.Combine(HostContext.GetDirectory(WellKnownDirectory.Work), "node" + DateTime.Now.ToFileTime());
string nodeFolder = Path.Combine(HostContext.GetDirectory(WellKnownDirectory.Externals));

Expand Down

0 comments on commit fdb9049

Please sign in to comment.