This repository was archived by the owner on Feb 2, 2023. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ) {
You can’t perform that action at this time.
0 commit comments