From 0fe8cbd360aeb18a6689edbf1882f58f7d6d320b Mon Sep 17 00:00:00 2001 From: Brent Simmons Date: Sat, 11 Nov 2017 14:27:56 -0800 Subject: [PATCH] Remove redundant check to see if feed is probably XML. --- Frameworks/RSParser/Feeds/FeedType.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Frameworks/RSParser/Feeds/FeedType.swift b/Frameworks/RSParser/Feeds/FeedType.swift index 0ac5fccec..1d5a10b14 100644 --- a/Frameworks/RSParser/Feeds/FeedType.swift +++ b/Frameworks/RSParser/Feeds/FeedType.swift @@ -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 }