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.kind.isEphemeral()) return false
|
||||
|
||||
val db = writableDatabase
|
||||
db.transaction {
|
||||
writableDatabase.transaction {
|
||||
innerInsertEvent(event, this)
|
||||
}
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user