Skip to content

Commit 2738f59

Browse files
committed
Update FileEx.cs
1 parent 9876521 commit 2738f59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MarkdownSnippets/FileEx.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ public static string GetRelativePath(string file, string directory)
1515
{
1616
var fileUri = new Uri(file);
1717
// Folders must end in a slash
18-
if (!directory.EndsWith(Path.DirectorySeparatorChar.ToString()))
18+
if (!directory.EndsWith(Path.DirectorySeparatorChar))
1919
{
2020
directory += Path.DirectorySeparatorChar;
2121
}

0 commit comments

Comments
 (0)