Skip to content

Commit

Permalink
Merge pull request #5 from shial4/Release-0.1.4
Browse files Browse the repository at this point in the history
[0.1.4] Update to Swift 4.1
  • Loading branch information
shial4 committed Apr 4, 2018
2 parents 568195e + 615196b commit fed0a0c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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>
2 changes: 1 addition & 1 deletion Sources/SLazeKit/Protocols/EntityMapping.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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) })
}
}

Expand Down

0 comments on commit fed0a0c

Please sign in to comment.