Skip to content

Commit 1785f63

Browse files
author
Tim De Jong
committed
Restored code layout messed up by swift-format.
1 parent bcdfa1c commit 1785f63

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

GRDB/Core/WALSnapshotTransaction.swift

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ final class WALSnapshotTransaction: @unchecked Sendable {
1414
func commitAndRelease() {
1515
// WALSnapshotTransaction may be deinitialized in the dispatch
1616
// queue of its reader: allow reentrancy.
17-
let isInsideTransaction = reader.reentrantSync(allowingLongLivedTransaction: false)
18-
{ db in
17+
let isInsideTransaction = reader.reentrantSync(allowingLongLivedTransaction: false) { db in
1918
// Commit or rollback, but try hard to leave the read-only transaction
2019
// (commit may fail with a CancellationError).
2120
do {
@@ -62,9 +61,8 @@ final class WALSnapshotTransaction: @unchecked Sendable {
6261
/// is no longer used.
6362
init(
6463
onReader reader: SerializedDatabase,
65-
release: @escaping @Sendable (_ isInsideTransaction: Bool) -> Void
66-
)
67-
throws
64+
release: @escaping @Sendable (_ isInsideTransaction: Bool) -> Void)
65+
throws
6866
{
6967
assert(reader.configuration.readonly)
7068
let databaseAccess = DatabaseAccess(reader: reader, release: release)

0 commit comments

Comments
 (0)