Skip to content

Commit

Permalink
dotnet#51371 removed extra spaces
Browse files Browse the repository at this point in the history
  • Loading branch information
mkhamoyan committed Jan 20, 2022
1 parent 7a3053c commit 5e2771d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,7 @@ protected string GetTestFileName(int? index = null, [CallerMemberName] string me

const int maxLength = 260 - 5; // Windows MAX_PATH minus a bit

int excessLength = testFilePath.Length - maxLength;

int excessLength = testFilePath.Length - maxLength;
if (excessLength > 0)
{
// The path will be too long for Windows -- can we
Expand Down
2 changes: 1 addition & 1 deletion src/libraries/System.IO.FileSystem/tests/FileSystemTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public static string GetNamedPipeServerStreamName()
return @"LOCAL\" + Guid.NewGuid().ToString("N");
}

if (PlatformDetection.IsWindows || !PlatformDetection.IsNotRunningOnMacOS)
if (PlatformDetection.IsWindows || !PlatformDetection.IsNotRunningOnMacOS)
{
return Guid.NewGuid().ToString("N");
}
Expand Down

0 comments on commit 5e2771d

Please sign in to comment.