mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-28 19:32:36 +01:00
minor
This commit is contained in:
1 parent
c112a84c0a
commit
6b9a4b480b
4 files changed
+23
-10
No files matched your search
@@ -191,7 +191,7 @@ public struct PartialObject<O: CoreStoreObject> {
|
||||
*/
|
||||
public func value<V>(for property: (O) -> TransformableContainer<O>.Optional<V>) -> V? {
|
||||
|
||||
return self.rawObject.value(forKey: property(O.meta).keyPath) as! V?
|
||||
return self.rawObject.value(forKey: property(O.meta).keyPath) as? V
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -212,7 +212,7 @@ public struct PartialObject<O: CoreStoreObject> {
|
||||
*/
|
||||
public func primitiveValue<V>(for property: (O) -> TransformableContainer<O>.Optional<V>) -> V? {
|
||||
|
||||
return self.rawObject.primitiveValue(forKey: property(O.meta).keyPath) as! V?
|
||||
return self.rawObject.primitiveValue(forKey: property(O.meta).keyPath) as? V
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user