File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Source/Public/FirebaseFirestore Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ NS_SWIFT_NAME(Firestore)
144
144
*/
145
145
- (void )runTransactionWithBlock:(id _Nullable (^)(FIRTransaction *, NSError **))updateBlock
146
146
completion:(void (^)(id _Nullable result, NSError *_Nullable error))completion
147
- __attribute__((swift_async_error(nonnull_error)));
147
+ __attribute__((swift_async_error(nonnull_error)));
148
148
149
149
/* *
150
150
* Creates a write batch, used for performing multiple writes as a single
Original file line number Diff line number Diff line change @@ -45,10 +45,10 @@ let emptyBundle = """
45
45
46
46
func testRunTransactionDoesNotCrashOnNilSuccess( ) async throws {
47
47
let document = collectionRef ( ) . document ( )
48
- let value = try await db. runTransaction ( { transact, error in
48
+ let value = try await db. runTransaction { transact, error in
49
49
transact. setData ( [ " test " : " test " ] , forDocument: document)
50
50
return nil // should not crash
51
- } )
51
+ }
52
52
53
53
XCTAssertNil ( value, " value should be nil on success " )
54
54
}
You can’t perform that action at this time.
0 commit comments