mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Change from flatMap to new compactMap rename in Xcode 9.3.
This commit is contained in:
@@ -36,7 +36,7 @@ extension NSApplication : ScriptingObjectContainer {
|
||||
let accounts = AccountManager.shared.accounts
|
||||
let emptyFeeds:[Feed] = []
|
||||
let feeds = accounts.reduce(emptyFeeds) { (result, nthAccount) -> [Feed] in
|
||||
let accountFeeds = nthAccount.children.flatMap { $0 as? Feed }
|
||||
let accountFeeds = nthAccount.children.compactMap { $0 as? Feed }
|
||||
return result + accountFeeds
|
||||
}
|
||||
return feeds.map { ScriptableFeed($0, container:self) } as NSArray
|
||||
|
||||
Reference in New Issue
Block a user