From 6f39c3140eeae08438500c29ebcbad6e3e66a2b3 Mon Sep 17 00:00:00 2001 From: Fabio Milano Date: Wed, 12 Apr 2023 15:52:54 -0700 Subject: [PATCH] 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 --- Source/IGListKit/IGListAdapter.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/IGListKit/IGListAdapter.m b/Source/IGListKit/IGListAdapter.m index c3eae9cb..11500480 100644 --- a/Source/IGListKit/IGListAdapter.m +++ b/Source/IGListKit/IGListAdapter.m @@ -1274,7 +1274,7 @@ typedef struct OffsetRange { - (void)performBatchAnimated:(BOOL)animated updates:(void (^)(id))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;