Remove extraneous get { from a bunch of read-only accessors.

This commit is contained in:
Brent Simmons
2018-02-14 13:14:25 -08:00
parent 192439abe7
commit 2f21dbf6be
44 changed files with 216 additions and 353 deletions

View File

@@ -42,26 +42,18 @@ private func accountAndArticlesDictionary(_ articles: Set<Article>) -> [String:
extension Article {
var feed: Feed? {
get {
return account?.existingFeed(with: feedID)
}
return account?.existingFeed(with: feedID)
}
var preferredLink: String? {
get {
return url ?? externalURL
}
return url ?? externalURL
}
var body: String? {
get {
return contentHTML ?? contentText ?? summary
}
return contentHTML ?? contentText ?? summary
}
var logicalDatePublished: Date {
get {
return datePublished ?? dateModified ?? status.dateArrived
}
return datePublished ?? dateModified ?? status.dateArrived
}
}