Skip to content

Commit 1a35465

Browse files
committed
Remove explicit usage of Path.ToString
1 parent 873f5ec commit 1a35465

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/LessIO/Path.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ public static Path Combine(params Path[] pathParts)
318318
{
319319
if (pathParts == null)
320320
throw new ArgumentNullException();
321-
var strs = pathParts.Select(p => p.ToString());
321+
var strs = pathParts.Select(p => p.PathString);
322322
return Combine(strs.ToArray());
323323
}
324324

src/LessIO/Strategies/Win32/Win32FileSystemStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ public override FileAttributes GetAttributes(Path path)
8484
public override void CreateDirectory(Path path)
8585
{
8686
// Since System.IO.Directory.Create() creates all neecessary directories, we emulate here:
87-
string pathString = path.ToString();
87+
string pathString = path.PathString;
8888
var dirsToCreate = new List<String>();
8989
int lengthRoot = path.PathRoot.Length;
9090

0 commit comments

Comments
 (0)