Skip to content

Commit 9b8cc16

Browse files
committed
Drop @escaping
1 parent a1dc335 commit 9b8cc16

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/SQLite/Core/Connection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -328,7 +328,7 @@ public final class Connection {
328328
/// must throw to roll the transaction back.
329329
///
330330
/// - Throws: `Result.Error`, and rethrows.
331-
public func transaction(_ mode: TransactionMode = .deferred, block: @escaping () throws -> Void) throws {
331+
public func transaction(_ mode: TransactionMode = .deferred, block: () throws -> Void) throws {
332332
try transaction("BEGIN \(mode.rawValue) TRANSACTION", block, "COMMIT TRANSACTION", or: "ROLLBACK TRANSACTION")
333333
}
334334

@@ -348,14 +348,14 @@ public final class Connection {
348348
/// The block must throw to roll the savepoint back.
349349
///
350350
/// - Throws: `SQLite.Result.Error`, and rethrows.
351-
public func savepoint(_ name: String = UUID().uuidString, block: @escaping () throws -> Void) throws {
351+
public func savepoint(_ name: String = UUID().uuidString, block: () throws -> Void) throws {
352352
let name = name.quote("'")
353353
let savepoint = "SAVEPOINT \(name)"
354354

355355
try transaction(savepoint, block, "RELEASE \(savepoint)", or: "ROLLBACK TO \(savepoint)")
356356
}
357357

358-
fileprivate func transaction(_ begin: String, _ block: @escaping () throws -> Void, _ commit: String, or rollback: String) throws {
358+
fileprivate func transaction(_ begin: String, _ block: () throws -> Void, _ commit: String, or rollback: String) throws {
359359
return try sync {
360360
try self.run(begin)
361361
do {

0 commit comments

Comments
 (0)