mirror of
https://github.com/JohnEstropia/CoreStore.git
synced 2026-03-27 11:51:31 +01:00
optimize redundant casting in printCoreStoreSchema()
This commit is contained in:
@@ -114,7 +114,7 @@ public extension DynamicSchema {
|
|||||||
}
|
}
|
||||||
case .decimalAttributeType:
|
case .decimalAttributeType:
|
||||||
valueType = NSDecimalNumber.self
|
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))\")"
|
defaultString = ", initial: NSDecimalNumber(string: \"\(defaultValue.description(withLocale: nil))\")"
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user