Change from flatMap to new compactMap rename in Xcode 9.3.

This commit is contained in:
Daniel Jalkut
2018-01-27 21:50:48 -05:00
parent 2d7d903bca
commit d7f13ca4be
26 changed files with 152 additions and 35 deletions

View File

@@ -332,7 +332,7 @@ extension MainWindowController: NSSharingServicePickerDelegate {
func sharingServicePicker(_ sharingServicePicker: NSSharingServicePicker, sharingServicesForItems items: [Any], proposedSharingServices proposedServices: [NSSharingService]) -> [NSSharingService] {
let sendToServices = appDelegate.sendToCommands.flatMap { (sendToCommand) -> NSSharingService? in
let sendToServices = appDelegate.sendToCommands.compactMap { (sendToCommand) -> NSSharingService? in
guard let object = items.first else {
return nil