Skip to content

Commit 97f8b63

Browse files
committed
Remove accidental spaces indentation usage
I am a bad person!!
1 parent cf7c8ab commit 97f8b63

1 file changed

Lines changed: 21 additions & 21 deletions

File tree

src/roslyn/Riverside.CompilerPlatform.Extensions/Helpers/DirectoryHelpers.cs

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,26 +8,26 @@ namespace Riverside.CompilerPlatform.Helpers;
88
/// </summary>
99
public static class DirectoryHelpers
1010
{
11-
/// <summary>
12-
/// Deletes <paramref name="path"/> and all of its contents recursively, suppressing any exception that occurs.
13-
/// </summary>
14-
/// <param name="path">The directory to delete.</param>
15-
public static void TryDelete(string path)
16-
{
17-
try { if (Directory.Exists(path)) Directory.Delete(path, recursive: true); }
18-
catch { }
19-
}
11+
/// <summary>
12+
/// Deletes <paramref name="path"/> and all of its contents recursively, suppressing any exception that occurs.
13+
/// </summary>
14+
/// <param name="path">The directory to delete.</param>
15+
public static void TryDelete(string path)
16+
{
17+
try { if (Directory.Exists(path)) Directory.Delete(path, recursive: true); }
18+
catch { }
19+
}
2020

21-
/// <summary>
22-
/// Creates a uniquely named subdirectory under <paramref name="basePath"/> and returns its full path.
23-
/// The subdirectory name is a compact <see cref="Guid"/> with no formatting characters.
24-
/// </summary>
25-
/// <param name="basePath">The parent directory. Created if it does not already exist.</param>
26-
/// <returns>The full path of the newly created temporary directory.</returns>
27-
public static string CreateTemporary(string basePath)
28-
{
29-
var path = Path.Combine(basePath, Guid.NewGuid().ToString("N"));
30-
Directory.CreateDirectory(path);
31-
return path;
32-
}
21+
/// <summary>
22+
/// Creates a uniquely named subdirectory under <paramref name="basePath"/> and returns its full path.
23+
/// The subdirectory name is a compact <see cref="Guid"/> with no formatting characters.
24+
/// </summary>
25+
/// <param name="basePath">The parent directory. Created if it does not already exist.</param>
26+
/// <returns>The full path of the newly created temporary directory.</returns>
27+
public static string CreateTemporary(string basePath)
28+
{
29+
var path = Path.Combine(basePath, Guid.NewGuid().ToString("N"));
30+
Directory.CreateDirectory(path);
31+
return path;
32+
}
3333
}

0 commit comments

Comments
 (0)