Skip to content

Commit 71d8dcd

Browse files
fix indent
1 parent 71d6a0f commit 71d8dcd

File tree

1 file changed

+9
-9
lines changed
  • ktorm-core/src/main/kotlin/me/liuwj/ktorm/database

1 file changed

+9
-9
lines changed

ktorm-core/src/main/kotlin/me/liuwj/ktorm/database/Database.kt

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -287,9 +287,9 @@ public class Database(
287287
*/
288288
@OptIn(ExperimentalContracts::class)
289289
public inline fun <T> useConnection(func: (Connection) -> T): T {
290-
contract {
291-
callsInPlace(func, InvocationKind.EXACTLY_ONCE)
292-
}
290+
contract {
291+
callsInPlace(func, InvocationKind.EXACTLY_ONCE)
292+
}
293293

294294
try {
295295
val transaction = transactionManager.currentTransaction
@@ -324,9 +324,9 @@ public class Database(
324324
isolation: TransactionIsolation = TransactionIsolation.REPEATABLE_READ,
325325
func: (Transaction) -> T
326326
): T {
327-
contract {
328-
callsInPlace(func, InvocationKind.EXACTLY_ONCE)
329-
}
327+
contract {
328+
callsInPlace(func, InvocationKind.EXACTLY_ONCE)
329+
}
330330

331331
val current = transactionManager.currentTransaction
332332
val isOuter = current == null
@@ -385,9 +385,9 @@ public class Database(
385385
*/
386386
@OptIn(ExperimentalContracts::class)
387387
public inline fun <T> executeExpression(expression: SqlExpression, func: (PreparedStatement) -> T): T {
388-
contract {
389-
callsInPlace(func, InvocationKind.EXACTLY_ONCE)
390-
}
388+
contract {
389+
callsInPlace(func, InvocationKind.EXACTLY_ONCE)
390+
}
391391

392392
val (sql, args) = formatExpression(expression)
393393

0 commit comments

Comments
 (0)