mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-09 08:04:45 +00:00
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