Remove redundant check to see if feed is probably XML.

This commit is contained in:
Brent Simmons 2017-11-11 14:27:56 -08:00
parent a593661ba9
commit 0fe8cbd360

View File

@ -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
}