mirror of
https://github.com/Ranchero-Software/NetNewsWire.git
synced 2024-12-28 18:40:26 +01:00
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
Block a user