mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2026-12-03 02:42:54 +00:00
Rename AtomAuthor.build to AtomAuthor.toParsedAuthor.
This commit is contained in:
1 parent
d6eb8df7d0
commit
bc836fe901
1 file changed
+2
-2
@@ -311,7 +311,7 @@ private final class AtomDelegate: XMLSAXParserDelegate {
|
||||
if localName.equals("author") {
|
||||
parsingAuthor = false
|
||||
if let current = currentAuthor {
|
||||
let author = current.build()
|
||||
let author = current.toParsedAuthor()
|
||||
if parsingArticle {
|
||||
if let author {
|
||||
currentArticle?.authors.insert(author)
|
||||
@@ -494,7 +494,7 @@ private final class AtomAuthor {
|
||||
var emailAddress: String?
|
||||
var url: String?
|
||||
|
||||
func build() -> ParsedAuthor? {
|
||||
func toParsedAuthor() -> ParsedAuthor? {
|
||||
if name == nil && emailAddress == nil && url == nil {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user