Removed out the old commented code
This commit is contained in:
parent
93abd266a1
commit
a9a532ddc6
|
@ -111,29 +111,17 @@ open class StORM {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// For now we will be expecting String & Integer key types:
|
||||||
switch type {
|
switch type {
|
||||||
case is Int.Type, is Int?.Type:
|
case is Int.Type, is Int?.Type:
|
||||||
return (val as! Int == 0)
|
return (val as! Int == 0)
|
||||||
case is String.Type, is String?.Type:
|
case is String.Type, is String?.Type:
|
||||||
return (val as! String).isEmpty
|
return (val as! String).isEmpty
|
||||||
default:
|
default:
|
||||||
print("[StORM] WARNING: Unexpected type for PRIMARY KEY in function: \(#function). TYPE: \(type)")
|
print("[StORM] WARNING: [\(#function)] Unexpected \(type) for PRIMARY KEY.")
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
// if val is Int {
|
|
||||||
// if val as! Int == 0 {
|
|
||||||
// return true
|
|
||||||
// } else {
|
|
||||||
// return false
|
|
||||||
// }
|
|
||||||
// } else {
|
|
||||||
// if (val as! String).isEmpty {
|
|
||||||
// return true
|
|
||||||
// } else {
|
|
||||||
// return false
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// The create method is designed to be overridden
|
/// The create method is designed to be overridden
|
||||||
|
|
Loading…
Reference in New Issue