Unwapped optional value

This commit is contained in:
Elias Nahum 2022-06-29 13:52:11 -04:00
parent 75ed884e65
commit dd1af41400
No known key found for this signature in database
GPG key ID: E038DB71E0B61702

View file

@ -154,7 +154,7 @@ extension Database {
if let result = try? db.pluck(query) {
let lastFetchAtInt64 = result[lastFetchedAtColAsInt64]
if lastFetchAtInt64 != nil,
lastFetchAtInt64 > 0 {
lastFetchAtInt64! > 0 {
return lastFetchAtInt64
}
if let last = result[lastFetchedAtColAsDouble],