Skip to content

Commit c048ed9

Browse files
committed
Minor fix
1 parent 4aff4de commit c048ed9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/TSCBasic/Path.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,8 +458,8 @@ private struct UNIXPath: Path {
458458
PathCchRemoveFileSpec(data, path.count)
459459
return String(decodingCString: data, as: UTF16.self)
460460
}
461-
// These two expressions represent for the current directory.
462-
if dir == "\\" || dir == "" {
461+
// Blank path represents for the current directory.
462+
if dir == "" {
463463
return "."
464464
}
465465
return dir

0 commit comments

Comments
 (0)