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

No need for parentheses here

This commit is contained in:
Daniel Barber 2020-01-20 13:15:11 -05:00
parent 2932ab9e33
commit 27425b76d6
Signed by: danbarber
GPG Key ID: 931D8112E0103DD8
4 changed files with 7 additions and 7 deletions

View File

@ -16,9 +16,9 @@ extension MPDClient {
var path: String?
static func == (lhs: MPDAlbum, rhs: MPDAlbum) -> Bool {
return (lhs.title == rhs.title) &&
(lhs.artist == rhs.artist) &&
(lhs.date == rhs.date)
return lhs.title == rhs.title &&
lhs.artist == rhs.artist &&
lhs.date == rhs.date
}
}
}

View File

@ -59,6 +59,6 @@ struct Album {
extension Album: Equatable {
static func == (lhs: Album, rhs: Album) -> Bool {
return (lhs.mpdAlbum == rhs.mpdAlbum)
return lhs.mpdAlbum == rhs.mpdAlbum
}
}

View File

@ -19,6 +19,6 @@ struct Artist {
extension Artist: Equatable {
static func == (lhs: Artist, rhs: Artist) -> Bool {
return (lhs.name == rhs.name)
return lhs.name == rhs.name
}
}

View File

@ -27,7 +27,7 @@ struct MPDServer {
extension MPDServer: Equatable {
static func == (lhs: MPDServer, rhs: MPDServer) -> Bool {
return (lhs.host == rhs.host) &&
(lhs.port == rhs.port)
return lhs.host == rhs.host &&
lhs.port == rhs.port
}
}