From 9069b110360e21588060e02fdd7c81eb2d191b5c Mon Sep 17 00:00:00 2001 From: Vitor Pamplona Date: Tue, 16 Dec 2025 18:03:26 -0500 Subject: [PATCH] small refactoring --- .../quartz/nip01Core/store/sqlite/SQLiteEventStore.kt | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/quartz/src/androidMain/kotlin/com/vitorpamplona/quartz/nip01Core/store/sqlite/SQLiteEventStore.kt b/quartz/src/androidMain/kotlin/com/vitorpamplona/quartz/nip01Core/store/sqlite/SQLiteEventStore.kt index 79680a7bf..df82c4452 100644 --- a/quartz/src/androidMain/kotlin/com/vitorpamplona/quartz/nip01Core/store/sqlite/SQLiteEventStore.kt +++ b/quartz/src/androidMain/kotlin/com/vitorpamplona/quartz/nip01Core/store/sqlite/SQLiteEventStore.kt @@ -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