[0.1.4] Update to Swift 4.1

This commit is contained in:
Shial 2018-04-05 09:18:18 +10:00
parent 568195e24c
commit 615196b8eb
2 changed files with 9 additions and 1 deletions

View File

@ -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>

View File

@ -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) })
}
}