Skip to content

Commit b27e18d

Browse files
authored
Code style fixes for UploadArtifactsTask.cs
1 parent 6dd50a9 commit b27e18d

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

build/DeployTasks/UploadArtifactsTask.cs

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,16 +57,20 @@ public override async Task RunAsync(BuildContext context)
5757

5858
void DeleteToolStore(BuildContext context, string path)
5959
{
60-
if (System.IO.Directory.Exists(path)) {
61-
var store = System.IO.Path.Combine (path, ".store");
62-
if (System.IO.Directory.Exists(store)) {
60+
if (System.IO.Directory.Exists(path))
61+
{
62+
var store = System.IO.Path.Combine(path, ".store");
63+
if (System.IO.Directory.Exists(store))
64+
{
6365
context.Log.Information($"Deleting: {store}");
6466
System.IO.Directory.Delete(store, recursive: true);
65-
foreach (var file in System.IO.Directory.GetFiles(path, "mgcb-*", System.IO.SearchOption.TopDirectoryOnly)) {
67+
foreach (var file in System.IO.Directory.GetFiles(path, "mgcb-*", System.IO.SearchOption.TopDirectoryOnly))
68+
{
6669
context.Log.Information($"Deleting: {file}");
6770
System.IO.File.Delete(file);
6871
}
69-
foreach (var file in System.IO.Directory.GetFiles(path, "tools_version.txt", System.IO.SearchOption.TopDirectoryOnly)) {
72+
foreach (var file in System.IO.Directory.GetFiles(path, "tools_version.txt", System.IO.SearchOption.TopDirectoryOnly))
73+
{
7074
context.Log.Information($"Deleting: {file}");
7175
System.IO.File.Delete(file);
7276
}

0 commit comments

Comments
 (0)