Skip to content

Commit

Permalink
Code style fixes for UploadArtifactsTask.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
harry-cpp authored Nov 19, 2024
1 parent 6dd50a9 commit b27e18d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions build/DeployTasks/UploadArtifactsTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,20 @@ public override async Task RunAsync(BuildContext context)

void DeleteToolStore(BuildContext context, string path)
{
if (System.IO.Directory.Exists(path)) {
var store = System.IO.Path.Combine (path, ".store");
if (System.IO.Directory.Exists(store)) {
if (System.IO.Directory.Exists(path))
{
var store = System.IO.Path.Combine(path, ".store");
if (System.IO.Directory.Exists(store))
{
context.Log.Information($"Deleting: {store}");
System.IO.Directory.Delete(store, recursive: true);
foreach (var file in System.IO.Directory.GetFiles(path, "mgcb-*", System.IO.SearchOption.TopDirectoryOnly)) {
foreach (var file in System.IO.Directory.GetFiles(path, "mgcb-*", System.IO.SearchOption.TopDirectoryOnly))
{
context.Log.Information($"Deleting: {file}");
System.IO.File.Delete(file);
}
foreach (var file in System.IO.Directory.GetFiles(path, "tools_version.txt", System.IO.SearchOption.TopDirectoryOnly)) {
foreach (var file in System.IO.Directory.GetFiles(path, "tools_version.txt", System.IO.SearchOption.TopDirectoryOnly))
{
context.Log.Information($"Deleting: {file}");
System.IO.File.Delete(file);
}
Expand Down

0 comments on commit b27e18d

Please sign in to comment.