Skip to content

Commit 064888c

Browse files
committed
Fix formatting
1 parent ff04f43 commit 064888c

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

engine/Sandbox.SolutionGenerator/Generator.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ private string NormalizePath( string path )
2525
{
2626
return path.Replace( '\\', '/' );
2727
}
28-
28+
2929

3030
// Importing necessary Win32 APIs for getting the canonical path
3131
[DllImport( "kernel32.dll", CharSet = CharSet.Unicode, SetLastError = true )]
@@ -48,9 +48,9 @@ private string NormalizePath( string path )
4848
/// </summary>
4949
private static string GetCanonicalPath( string path )
5050
{
51-
if ( !string.IsNullOrWhiteSpace( path ) && !Path.IsPathRooted( path )) return path;
51+
if ( !string.IsNullOrWhiteSpace( path ) && !Path.IsPathRooted( path ) ) return path;
5252

53-
try
53+
try
5454
{
5555
var handle = CreateFileW( path, 0, FILE_SHARE_READ | FILE_SHARE_WRITE, IntPtr.Zero, OPEN_EXISTING, FILE_FLAG_BACKUP_SEMANTICS, IntPtr.Zero );
5656
if ( handle == IntPtr.Zero || handle == new IntPtr( -1 ) )
@@ -74,13 +74,13 @@ private static string GetCanonicalPath( string path )
7474
{
7575
return path;
7676
}
77-
}
77+
}
7878
finally
7979
{
8080
CloseHandle( handle );
8181
}
82-
}
83-
catch
82+
}
83+
catch
8484
{
8585
// Ignore errors and return original path
8686
return path;

0 commit comments

Comments
 (0)