Skip to content

Commit 02fbd7c

Browse files
committed
Format
1 parent 67d0be5 commit 02fbd7c

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

core/src/commonTest/kotlin/com/powersync/TestConnector.kt

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package com.powersync
33
import com.powersync.connectors.PowerSyncBackendConnector
44
import com.powersync.connectors.PowerSyncCredentials
55

6-
class TestConnector: PowerSyncBackendConnector() {
6+
class TestConnector : PowerSyncBackendConnector() {
77
var fetchCredentialsCallback: suspend () -> PowerSyncCredentials? = {
88
PowerSyncCredentials(
99
token = "test-token",
@@ -16,9 +16,7 @@ class TestConnector: PowerSyncBackendConnector() {
1616
tx?.complete(null)
1717
}
1818

19-
override suspend fun fetchCredentials(): PowerSyncCredentials? {
20-
return fetchCredentialsCallback()
21-
}
19+
override suspend fun fetchCredentials(): PowerSyncCredentials? = fetchCredentialsCallback()
2220

2321
override suspend fun uploadData(database: PowerSyncDatabase) {
2422
uploadDataCallback(database)

0 commit comments

Comments
 (0)