Skip to content

Commit

Permalink
fix OCKCDPostalAddress CoreData init
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Apr 9, 2023
1 parent 4bf2d81 commit 863a5e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions CareKitStore/CareKitStore/CoreData/OCKCDPostalAddress.swift
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ class OCKCDPostalAddress: NSManagedObject {
@NSManaged var country: String
@NSManaged var isoCountryCode: String

init(address: OCKPostalAddress, context: NSManagedObjectContext) {
super.init(entity: Self.entity(), insertInto: context)
convenience init(address: OCKPostalAddress, context: NSManagedObjectContext) {
self.init(entity: Self.entity(), insertInto: context)
street = address.street
subLocality = address.subLocality
city = address.city
Expand Down

0 comments on commit 863a5e8

Please sign in to comment.