mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Remove redundant check to see if feed is probably XML.
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user