Skip to content

Commit

Permalink
Fixed an issue where we weren't using the correct parser. Issue #24
Browse files Browse the repository at this point in the history
  • Loading branch information
vincode-io committed Mar 20, 2019
1 parent 4d66813 commit add185e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions FeedCompass/Info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>0.5</string>
<string>0.6</string>
<key>CFBundleVersion</key>
<string>8</string>
<string>12</string>
<key>LSMinimumSystemVersion</key>
<string>$(MACOSX_DEPLOYMENT_TARGET)</string>
<key>NSAppTransportSecurity</key>
Expand Down
3 changes: 2 additions & 1 deletion FeedCompass/MainWindow/OPMLViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,8 @@ private extension OPMLViewController {
}

let parserData = ParserData(url: url, data: data)
if let parsedFeed = RSSParser.parse(parserData) {
// Got to double unwrap until Swift 5
if let tempFeed = try? FeedParser.parse(parserData), let parsedFeed = tempFeed {
if parsedFeed.items.count > 0 {
splitViewController.showRSSFeed(parsedFeed)
} else {
Expand Down

0 comments on commit add185e

Please sign in to comment.