File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
Sources/FoundationEssentials Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change @@ -49,8 +49,6 @@ package struct Platform {
49
49
_pageSize
50
50
}
51
51
52
- // FIXME: Windows SEPARATOR
53
- static let PATH_SEPARATOR : Character = " / "
54
52
static let MAX_HOSTNAME_LENGTH = 1024
55
53
56
54
static func roundDownToMultipleOfPageSize( _ size: Int ) -> Int {
Original file line number Diff line number Diff line change @@ -583,13 +583,7 @@ extension _ProcessInfo {
583
583
guard let processPath = CommandLine . arguments. first else {
584
584
return " "
585
585
}
586
-
587
- if let lastSlash = processPath. lastIndex ( of: Platform . PATH_SEPARATOR) {
588
- return String ( processPath [
589
- processPath. index ( after: lastSlash) ..< processPath. endIndex] )
590
- }
591
-
592
- return processPath
586
+ return processPath. lastPathComponent
593
587
}
594
588
595
589
#if os(macOS)
You can’t perform that action at this time.
0 commit comments