@@ -88,7 +88,7 @@ class IntegrationTests: XCTestCase {
88
88
let function = functions. httpsCallable ( " dataTest " ,
89
89
requestAs: DataTestRequest . self,
90
90
responseAs: DataTestResponse . self)
91
- try function. call ( data) { result in
91
+ function. call ( data) { result in
92
92
do {
93
93
let response = try result. get ( )
94
94
let expected = DataTestResponse (
@@ -138,7 +138,7 @@ class IntegrationTests: XCTestCase {
138
138
requestAs: Int16 . self,
139
139
responseAs: Int . self
140
140
)
141
- try function. call ( 17 ) { result in
141
+ function. call ( 17 ) { result in
142
142
do {
143
143
let response = try result. get ( )
144
144
XCTAssertEqual ( response, 76 )
@@ -189,7 +189,7 @@ class IntegrationTests: XCTestCase {
189
189
responseAs: [ String : Int ] . self
190
190
)
191
191
XCTAssertNotNil ( function)
192
- try function. call ( [ : ] ) { result in
192
+ function. call ( [ : ] ) { result in
193
193
do {
194
194
let data = try result. get ( )
195
195
XCTAssertEqual ( data, [ : ] )
@@ -231,7 +231,7 @@ class IntegrationTests: XCTestCase {
231
231
requestAs: [ String : Int ] . self,
232
232
responseAs: [ String : Int ] . self
233
233
)
234
- try function. call ( [ : ] ) { result in
234
+ function. call ( [ : ] ) { result in
235
235
do {
236
236
let data = try result. get ( )
237
237
XCTAssertEqual ( data, [ : ] )
@@ -264,7 +264,7 @@ class IntegrationTests: XCTestCase {
264
264
requestAs: Int ? . self,
265
265
responseAs: Int ? . self
266
266
)
267
- try function. call ( nil ) { result in
267
+ function. call ( nil ) { result in
268
268
do {
269
269
let data = try result. get ( )
270
270
XCTAssertEqual ( data, nil )
@@ -305,7 +305,7 @@ class IntegrationTests: XCTestCase {
305
305
requestAs: Int ? . self,
306
306
responseAs: Int ? . self
307
307
)
308
- try function. call ( nil ) { result in
308
+ function. call ( nil ) { result in
309
309
do {
310
310
_ = try result. get ( )
311
311
} catch {
@@ -344,7 +344,7 @@ class IntegrationTests: XCTestCase {
344
344
requestAs: [ Int ] . self,
345
345
responseAs: Int . self
346
346
)
347
- try function. call ( [ ] ) { result in
347
+ function. call ( [ ] ) { result in
348
348
do {
349
349
_ = try result. get ( )
350
350
} catch {
@@ -384,7 +384,7 @@ class IntegrationTests: XCTestCase {
384
384
requestAs: [ Int ] . self,
385
385
responseAs: Int . self
386
386
)
387
- try function. call ( [ ] ) { result in
387
+ function. call ( [ ] ) { result in
388
388
do {
389
389
_ = try result. get ( )
390
390
} catch {
@@ -423,7 +423,7 @@ class IntegrationTests: XCTestCase {
423
423
requestAs: [ Int ] . self,
424
424
responseAs: Int . self
425
425
)
426
- try function. call ( [ ] ) { result in
426
+ function. call ( [ ] ) { result in
427
427
do {
428
428
_ = try result. get ( )
429
429
} catch {
@@ -467,7 +467,7 @@ class IntegrationTests: XCTestCase {
467
467
responseAs: Int . self
468
468
)
469
469
XCTAssertNotNil ( function)
470
- try function. call ( [ ] ) { result in
470
+ function. call ( [ ] ) { result in
471
471
do {
472
472
_ = try result. get ( )
473
473
} catch {
@@ -505,7 +505,7 @@ class IntegrationTests: XCTestCase {
505
505
responseAs: Int . self
506
506
)
507
507
function. timeoutInterval = 0.05
508
- try function. call ( [ ] ) { result in
508
+ function. call ( [ ] ) { result in
509
509
do {
510
510
_ = try result. get ( )
511
511
} catch {
@@ -553,7 +553,7 @@ class IntegrationTests: XCTestCase {
553
553
let function = functions. httpsCallable ( " dataTest " ,
554
554
requestAs: DataTestRequest . self,
555
555
responseAs: DataTestResponse . self)
556
- try function ( data) { result in
556
+ function ( data) { result in
557
557
do {
558
558
let response = try result. get ( )
559
559
let expected = DataTestResponse (
@@ -608,7 +608,7 @@ class IntegrationTests: XCTestCase {
608
608
)
609
609
let function : Callable < DataTestRequest , DataTestResponse > = functions. httpsCallable ( " dataTest " )
610
610
611
- try function ( data) { result in
611
+ function ( data) { result in
612
612
do {
613
613
let response = try result. get ( )
614
614
let expected = DataTestResponse (
0 commit comments