Remove redundant check to see if feed is probably XML.
This commit is contained in:
parent
a593661ba9
commit
0fe8cbd360
|
@ -33,16 +33,13 @@ public func feedType(_ parserData: ParserData) -> FeedType {
|
|||
}
|
||||
|
||||
let nsdata = parserData.data as NSData
|
||||
|
||||
if nsdata.isProbablyJSONFeed() {
|
||||
return .jsonFeed
|
||||
}
|
||||
if nsdata.isProbablyRSSInJSON() {
|
||||
return .rssInJSON
|
||||
}
|
||||
|
||||
if !nsdata.isProbablyXML() {
|
||||
return .notAFeed
|
||||
}
|
||||
if nsdata.isProbablyRSS() {
|
||||
return .rss
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue