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 @@ final class DeleteFromSidebarCommand: UndoableCommand {
|
||||
self.undoActionName = actionName
|
||||
self.undoManager = undoManager
|
||||
|
||||
let itemSpecifiers = nodesToDelete.flatMap{ SidebarItemSpecifier(node: $0) }
|
||||
let itemSpecifiers = nodesToDelete.compactMap{ SidebarItemSpecifier(node: $0) }
|
||||
guard !itemSpecifiers.isEmpty else {
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user