Skip to content

Commit

Permalink
test reverting back to unsafeDowncast
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnEstropia committed Jun 7, 2023
1 parent 2559375 commit 535b33c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Sources/DynamicObject.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ extension NSManagedObject: DynamicObject {

public class func cs_fromRaw(object: NSManagedObject) -> Self {

// unsafeDowncast fails debug assertion starting Swift 5.2
return _unsafeUncheckedDowncast(object, to: self)
return unsafeDowncast(object, to: self)
}

public static func cs_matches(object: NSManagedObject) -> Bool {
Expand Down

0 comments on commit 535b33c

Please sign in to comment.