mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-11-14 04:43:35 +01:00
optimize redundant casting in printCoreStoreSchema()
This commit is contained in:
1 parent
68f1027ba7
commit
3ebc44b546
1 file changed
+1
-1
@@ -114,7 +114,7 @@ public extension DynamicSchema {
|
||||
}
|
||||
case .decimalAttributeType:
|
||||
valueType = NSDecimalNumber.self
|
||||
if let defaultValue = (attribute.defaultValue as! NSDecimalNumber.ImportableNativeType?).flatMap(NSDecimalNumber.cs_fromImportableNativeType) {
|
||||
if let defaultValue = (attribute.defaultValue as! NSDecimalNumber?) {
|
||||
|
||||
defaultString = ", initial: NSDecimalNumber(string: \"\(defaultValue.description(withLocale: nil))\")"
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user