1
1
mirror of https://github.com/danbee/persephone synced 2025-03-04 08:39:11 +00:00

Use NSString helper here

This commit is contained in:
Daniel Barber 2020-01-20 13:18:22 -05:00
parent 27425b76d6
commit ae075914b3
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8

View File

@ -55,10 +55,8 @@ extension MPDClient {
}
var path: String {
return uriString
.split(separator: "/")
.dropLast()
.joined(separator: "/")
return NSString(string: uriString)
.deletingLastPathComponent
}
func getTag(_ tagType: MPDTag) -> String {