Skip to content

Commit

Permalink
Update VirtualizedRunHelper.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonCropp committed Jun 2, 2024
1 parent c29f356 commit 625906b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Verify/VirtualizedRunHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -255,8 +255,8 @@ static string TryRemoveDirFromEndOfPath(string path)
return path;
}

private static string CombinePaths(string path1, string path2) =>
static string CombinePaths(string path1, string path2) =>
$"{path1.TrimEnd(separators)}{Env.DirectorySeparatorChar}{path2.Replace(OtherDirectorySeparatorChar, Env.DirectorySeparatorChar)}";

private static char OtherDirectorySeparatorChar => Env.DirectorySeparatorChar == '/' ? '\\' : '/';
static char OtherDirectorySeparatorChar => Env.DirectorySeparatorChar == '/' ? '\\' : '/';
}

0 comments on commit 625906b

Please sign in to comment.