Skip to content
This repository was archived by the owner on Feb 2, 2023. It is now read-only.

Commit aeec0b1

Browse files
author
Adlai Holler
authored
[ASChangeSetDataController] Enable some assertions (#1984)
1 parent e010cd3 commit aeec0b1

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

AsyncDisplayKit/Details/ASChangeSetDataController.mm

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,7 @@ @implementation ASChangeSetDataController {
2424

2525
- (void)beginUpdates
2626
{
27-
// NOTE: This assertion is failing in some apps and will be enabled soon.
28-
// ASDisplayNodeAssertMainThread();
27+
ASDisplayNodeAssertMainThread();
2928
if (_changeSetBatchUpdateCounter <= 0) {
3029
_changeSetBatchUpdateCounter = 0;
3130
_changeSet = [[_ASHierarchyChangeSet alloc] initWithOldData:[self itemCountsFromDataSource]];
@@ -35,13 +34,11 @@ - (void)beginUpdates
3534

3635
- (void)endUpdatesAnimated:(BOOL)animated completion:(void (^)(BOOL))completion
3736
{
38-
// NOTE: This assertion is failing in some apps and will be enabled soon.
39-
// ASDisplayNodeAssertMainThread();
37+
ASDisplayNodeAssertMainThread();
4038
_changeSetBatchUpdateCounter--;
4139

4240
// Prevent calling endUpdatesAnimated:completion: in an unbalanced way
43-
// NOTE: This assertion is failing in some apps and will be enabled soon.
44-
// NSAssert(_changeSetBatchUpdateCounter >= 0, @"endUpdatesAnimated:completion: called without having a balanced beginUpdates call");
41+
NSAssert(_changeSetBatchUpdateCounter >= 0, @"endUpdatesAnimated:completion: called without having a balanced beginUpdates call");
4542

4643
if (_changeSetBatchUpdateCounter == 0) {
4744
if (!self.initialReloadDataHasBeenCalled) {

0 commit comments

Comments
 (0)