small refactoring

This commit is contained in:
Vitor Pamplona
2025-12-16 18:03:26 -05:00
parent 0fb64c5ff7
commit 9069b11036
@@ -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