Database.swift cleanup

This commit is contained in:
Gwendal Roué committed 2015-09-05 23:18:57 +02:00
1 parent 16e767d2c6
commit 7d18c59588
1 file changed
+3 -3
+3 -3
View File
@@ -185,9 +185,9 @@ public final class Database {
// Columns name, type, primary key index
.map { (
name: ($0.value(named: "name") as String?)!,
type: ($0.value(named: "type") as String?)!,
primaryKeyIndex: ($0.value(named: "pk") as Int?)!) }
name: $0.value(named: "name")! as String,
type: $0.value(named: "type")! as String,
primaryKeyIndex: $0.value(named: "pk")! as Int) }
// Columns part of the primary key.
.filter { $0.primaryKeyIndex > 0 }