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
|
let nsdata = parserData.data as NSData
|
||||||
|
|
||||||
if nsdata.isProbablyJSONFeed() {
|
if nsdata.isProbablyJSONFeed() {
|
||||||
return .jsonFeed
|
return .jsonFeed
|
||||||
}
|
}
|
||||||
if nsdata.isProbablyRSSInJSON() {
|
if nsdata.isProbablyRSSInJSON() {
|
||||||
return .rssInJSON
|
return .rssInJSON
|
||||||
}
|
}
|
||||||
|
|
||||||
if !nsdata.isProbablyXML() {
|
|
||||||
return .notAFeed
|
|
||||||
}
|
|
||||||
if nsdata.isProbablyRSS() {
|
if nsdata.isProbablyRSS() {
|
||||||
return .rss
|
return .rss
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue