Skip to content

Commit

Permalink
remove context in OutcomeValue
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaker6 committed Nov 28, 2024
1 parent 23704b6 commit 46a4087
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions CareKitStore/CareKitStore/CoreData/OCKCDOutcomeValue.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,15 +64,11 @@ class OCKCDOutcomeValue: NSManagedObject {

func makeValue() -> OCKOutcomeValue {

var value: OCKOutcomeValue!

self.managedObjectContext!.performAndWait {
value = OCKOutcomeValue(self.value, units: units)
value.createdDate = createdDate
value.startDate = startDate
value.endDate = endDate
value.kind = kind
}
var value = OCKOutcomeValue(self.value, units: units)
value.createdDate = createdDate
value.startDate = startDate
value.endDate = endDate
value.kind = kind

return value
}
Expand Down

0 comments on commit 46a4087

Please sign in to comment.