Skip to content

Commit 14a5062

Browse files
committed
fix lints
1 parent 05e2398 commit 14a5062

4 files changed

Lines changed: 7 additions & 5 deletions

File tree

common/src/commonNonWeb/kotlin/com/powersync/openInMemory.kt renamed to common/src/commonNonWeb/kotlin/com/powersync/OpenInMemory.kt

File renamed without changes.

common/src/commonNonWeb/kotlin/com/powersync/db/driver/SQLiteConnectionPool.commonNonWeb.kt renamed to common/src/commonNonWeb/kotlin/com/powersync/db/driver/SQLiteConnectionLease.nonWeb.kt

File renamed without changes.

common/src/webMain/kotlin/com/powersync/db/driver/SQLiteConnectionPool.web.kt renamed to common/src/webMain/kotlin/com/powersync/db/driver/SQLiteConnectionLease.web.kt

File renamed without changes.

integrations/room/src/commonMain/kotlin/com/powersync/integrations/room/RoomConnectionPool.kt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,13 @@ private class RoomTransactionLease(
156156

157157
override suspend fun <R> usePreparedAsync(
158158
sql: String,
159-
block: suspend (SQLiteStatement) -> R
160-
): R = transactor.usePrepared(sql) {
161-
// TODO: This is suspending in Room3, where we can avoid the runBlocking here.
162-
stmt -> runBlocking { block(stmt) }
163-
}
159+
block: suspend (SQLiteStatement) -> R,
160+
): R =
161+
transactor.usePrepared(sql) {
162+
// TODO: This is suspending in Room3, where we can avoid the runBlocking here.
163+
stmt ->
164+
runBlocking { block(stmt) }
165+
}
164166

165167
override fun isInTransactionSync(): Boolean =
166168
runBlocking(context) {

0 commit comments

Comments
 (0)