@@ -594,7 +594,7 @@ - (void)testDocumentSnapshotEvents_nonExistent {
594
594
XCTAssertFalse (doc.exists );
595
595
[snapshotCompletion fulfill ];
596
596
597
- } else if (callbacks == 2 ) {
597
+ } else {
598
598
XCTFail (" Should not have received this callback" );
599
599
}
600
600
}];
@@ -625,7 +625,7 @@ - (void)testDocumentSnapshotEvents_forAdd {
625
625
XCTAssertEqual (doc.metadata .hasPendingWrites , YES );
626
626
[dataCompletion fulfill ];
627
627
628
- } else if (callbacks == 3 ) {
628
+ } else {
629
629
XCTFail (" Should not have received this callback" );
630
630
}
631
631
}];
@@ -666,7 +666,7 @@ - (void)testDocumentSnapshotEvents_forAddIncludingMetadata {
666
666
XCTAssertEqual (doc.metadata .hasPendingWrites , NO );
667
667
[dataCompletion fulfill ];
668
668
669
- } else if (callbacks == 4 ) {
669
+ } else {
670
670
XCTFail (" Should not have received this callback" );
671
671
}
672
672
}];
@@ -706,7 +706,7 @@ - (void)testDocumentSnapshotEvents_forChange {
706
706
XCTAssertEqual (doc.metadata .hasPendingWrites , YES );
707
707
[changeCompletion fulfill ];
708
708
709
- } else if (callbacks == 3 ) {
709
+ } else {
710
710
XCTFail (" Should not have received this callback" );
711
711
}
712
712
}];
@@ -760,7 +760,7 @@ - (void)testDocumentSnapshotEvents_forChangeIncludingMetadata {
760
760
XCTAssertEqual (doc.metadata .isFromCache , NO );
761
761
[changeCompletion fulfill ];
762
762
763
- } else if (callbacks == 5 ) {
763
+ } else {
764
764
XCTFail (" Should not have received this callback" );
765
765
}
766
766
}];
@@ -799,7 +799,7 @@ - (void)testDocumentSnapshotEvents_forDelete {
799
799
XCTAssertFalse (doc.exists );
800
800
[changeCompletion fulfill ];
801
801
802
- } else if (callbacks == 3 ) {
802
+ } else {
803
803
XCTFail (" Should not have received this callback" );
804
804
}
805
805
}];
@@ -847,7 +847,7 @@ - (void)testDocumentSnapshotEvents_forDeleteIncludingMetadata {
847
847
XCTAssertEqual (doc.metadata .isFromCache , NO );
848
848
[changeCompletion fulfill ];
849
849
850
- } else if (callbacks == 4 ) {
850
+ } else {
851
851
XCTFail (" Should not have received this callback" );
852
852
}
853
853
}];
@@ -886,7 +886,7 @@ - (void)testQuerySnapshotEvents_forAdd {
886
886
XCTAssertEqual (docSet.documents [0 ].metadata .hasPendingWrites , YES );
887
887
[changeCompletion fulfill ];
888
888
889
- } else if (callbacks == 3 ) {
889
+ } else {
890
890
XCTFail (" Should not have received a third callback" );
891
891
}
892
892
}];
@@ -929,7 +929,7 @@ - (void)testQuerySnapshotEvents_forChange {
929
929
XCTAssertEqual (docSet.documents [0 ].metadata .hasPendingWrites , YES );
930
930
[changeCompletion fulfill ];
931
931
932
- } else if (callbacks == 3 ) {
932
+ } else {
933
933
XCTFail (" Should not have received a third callback" );
934
934
}
935
935
}];
@@ -969,7 +969,7 @@ - (void)testQuerySnapshotEvents_forDelete {
969
969
XCTAssertEqual (docSet.count , 0 );
970
970
[changeCompletion fulfill ];
971
971
972
- } else if (callbacks == 4 ) {
972
+ } else {
973
973
XCTFail (" Should not have received a third callback" );
974
974
}
975
975
}];
0 commit comments