small refactoring
This commit is contained in:
+1
-2
@@ -109,8 +109,7 @@ class SQLiteEventStore(
|
|||||||
if (event.isExpired()) throw SQLiteConstraintException("blocked: Cannot insert an expired event")
|
if (event.isExpired()) throw SQLiteConstraintException("blocked: Cannot insert an expired event")
|
||||||
if (event.kind.isEphemeral()) return false
|
if (event.kind.isEphemeral()) return false
|
||||||
|
|
||||||
val db = writableDatabase
|
writableDatabase.transaction {
|
||||||
db.transaction {
|
|
||||||
innerInsertEvent(event, this)
|
innerInsertEvent(event, this)
|
||||||
}
|
}
|
||||||
return true
|
return true
|
||||||
|
|||||||
Reference in New Issue
Block a user