Skip to content
This repository was archived by the owner on Dec 24, 2022. It is now read-only.

Commit 5ce1cb3

Browse files
committed
Use correct Path.DirectorySeparatorChar
1 parent 4794cb4 commit 5ce1cb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ServiceStack.Text/Inspect.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ public static void DefaultVarsFilter(object anonArgs)
2424
return;
2525

2626
var varsPath = inspectVarsPath?.Length > 0
27-
? Path.PathSeparator == '\\'
27+
? Path.DirectorySeparatorChar == '\\'
2828
? inspectVarsPath.Replace('/','\\')
2929
: inspectVarsPath.Replace('\\','/')
3030
: VarsName;
3131

32-
if (varsPath.IndexOf(Path.PathSeparator) >= 0)
32+
if (varsPath.IndexOf(Path.DirectorySeparatorChar) >= 0)
3333
Path.GetDirectoryName(varsPath).AssertDir();
3434

3535
File.WriteAllText(varsPath, anonArgs.ToSafeJson());

0 commit comments

Comments
 (0)