Demoting assertion for performing batch updates on empty collection view

Summary: We keep receiving must fixes for this assert that effectively are not followed up since they are hard to debug and seems do not affect the app. Demoting.

Reviewed By: candance

Differential Revision: D44934015

fbshipit-source-id: a65b8a5980a1e2a8ab48201987e90fdff646c498
This commit is contained in:
Fabio Milano 2023-04-12 15:52:54 -07:00 committed by Facebook GitHub Bot
parent 26ddcb503a
commit 6f39c3140e

View file

@ -1274,7 +1274,7 @@ typedef struct OffsetRange {
- (void)performBatchAnimated:(BOOL)animated updates:(void (^)(id<IGListBatchContext>))updates completion:(void (^)(BOOL))completion {
IGAssertMainThread();
IGParameterAssert(updates != nil);
IGAssert(self.collectionView != nil, @"Performing batch updates without a collection view.");
IGWarn(self.collectionView != nil, @"Performing batch updates without a collection view.");
[self _enterBatchUpdates];
__weak __typeof__(self) weakSelf = self;