[0.1.4] Update to Swift 4.1
This commit is contained in:
parent
568195e24c
commit
615196b8eb
|
@ -0,0 +1,8 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
||||
<plist version="1.0">
|
||||
<dict>
|
||||
<key>IDEDidComputeMac32BitWarning</key>
|
||||
<true/>
|
||||
</dict>
|
||||
</plist>
|
|
@ -54,7 +54,7 @@ extension Array where Element: EntityMapping {
|
|||
/// - Parameter context: Context on which fetch should be executed
|
||||
/// - Returns: Array of serialized object from EntityMapping response type.
|
||||
public func serialized<T: NSManagedObject>(_ context: NSManagedObjectContext?) throws -> [T] {
|
||||
return try flatMap({ try $0.serialized(context) })
|
||||
return try compactMap({ try $0.serialized(context) })
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue