mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-22 17:39:15 +01:00
Fix warnings for Xcode 13.3 beta
This commit is contained in:
@@ -36,9 +36,9 @@ extension NSManagedObjectModel {
|
||||
|
||||
return self.entitiesByName.reduce(
|
||||
into: [:],
|
||||
{ (result, entity: (name: String, description: NSEntityDescription)) in
|
||||
{ (result, entity: (key: String, value: NSEntityDescription)) in
|
||||
|
||||
result[entity.name] = (entity.description, entity.description.versionHash)
|
||||
result[entity.key] = (entity.value, entity.value.versionHash)
|
||||
}
|
||||
)
|
||||
}
|
||||
@@ -48,9 +48,9 @@ extension NSManagedObjectModel {
|
||||
|
||||
return self.entitiesByName.reduce(
|
||||
into: [:],
|
||||
{ (result, entity: (name: String, description: NSEntityDescription)) in
|
||||
{ (result, entity: (key: String, value: NSEntityDescription)) in
|
||||
|
||||
result[entity.description.renamingIdentifier ?? entity.name] = (entity.description, entity.description.versionHash)
|
||||
result[entity.value.renamingIdentifier ?? entity.key] = (entity.value, entity.value.versionHash)
|
||||
}
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user