README.md

This commit is contained in:
Gwendal Roué committed 2015-10-28 09:03:54 +01:00
1 parent de1e0cc096
commit 52659c19c0
1 file changed
+1 -2
+1 -2
View File
@@ -778,8 +778,7 @@ struct DatabaseTimestamp: DatabaseValueConvertible {
/// Returns an instance initialized from *databaseValue*, if possible.
static func fromDatabaseValue(databaseValue: DatabaseValue) -> DatabaseTimestamp? {
// Double itself adopts DatabaseValueConvertible. So let's avoid
// handling the raw DatabaseValue, and use built-in Double conversion:
// Double itself adopts DatabaseValueConvertible:
guard let timeInterval = Double.fromDatabaseValue(databaseValue) else {
// No Double, no NSDate!
return nil