Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
darinf committed Feb 15, 2024
1 parent bcf11eb commit 8fb2412
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Sources/FirebaseFirestore/Firestore+Swift.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ extension Firestore {
swift_firebase.swift_cxx_shims.firebase.firestore.firestore_batch(self)
}

private typealias TransactionUpdateBlock = (Transaction, UnsafePointer<NSError?>?) -> Any?

private class TransactionContext {
let updateBlock: TransactionUpdateBlock
typealias UpdateBlock = (Transaction, UnsafePointer<NSError?>?) -> Any?

let updateBlock: UpdateBlock
var result: Any?
var error: NSError?

init(updateBlock: @escaping TransactionUpdateBlock) {
init(updateBlock: @escaping UpdateBlock) {
self.updateBlock = updateBlock
}
}
Expand Down

0 comments on commit 8fb2412

Please sign in to comment.