We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cd6cb47 commit 3ad2191Copy full SHA for 3ad2191
Sources/Transactions.swift
@@ -167,8 +167,8 @@ internal final class TLog {
167
168
static func atomically<T>(_ p : (TLog) throws -> T) throws -> T {
169
let trans = TLog()
170
- let transactionEnterSucceed = STMCurrentTransaction.tryPut(trans)
171
- precondition(transactionEnterSucceed, "Transaction already running on current thread")
+ let transactionEnterSucceed = STMCurrentTransaction.tryPut(trans)
+ precondition(transactionEnterSucceed, "Transaction already running on current thread")
172
defer {
173
_ = STMCurrentTransaction.take()
174
}
0 commit comments