mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-16 13:51:12 +01:00
Swift 4.1 support
This commit is contained in:
1 parent
83e6082c56
commit
5431e2e974
19 files changed
+46
-40
No files matched your search
@@ -56,8 +56,8 @@ public class CustomSchemaMappingProvider: Hashable, SchemaMappingProvider {
|
||||
CoreStore.assert(
|
||||
cs_lazy {
|
||||
|
||||
let sources = entityMappings.flatMap({ $0.entityMappingSourceEntity })
|
||||
let destinations = entityMappings.flatMap({ $0.entityMappingDestinationEntity })
|
||||
let sources = entityMappings.compactMap({ $0.entityMappingSourceEntity })
|
||||
let destinations = entityMappings.compactMap({ $0.entityMappingDestinationEntity })
|
||||
return sources.count == Set(sources).count
|
||||
&& destinations.count == Set(destinations).count
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user