There are no usernames on iOS etc.

This commit is contained in:
Max Howell
2019-02-11 15:11:22 -05:00
parent be49fb9e49
commit 097e020735

View File

@@ -78,11 +78,7 @@ public struct Path: Equatable, Hashable, Comparable {
tilded = dir
}
#else
if username != NSUserName() {
return nil
} else {
tilded = NSHomeDirectory()
}
return nil // there are no usernames on iOS, etc.
#endif
}
pathComponents.remove(at: 0)