From fecf9e412499158cc2d39522f6394c4ac3d65e92 Mon Sep 17 00:00:00 2001 From: Benny Wong Date: Tue, 11 Feb 2020 08:40:07 -0800 Subject: [PATCH] Convert IGAssertNonnull to a IGAssert( != nil) (#1425) Summary: * This was introduced in https://github.com/instagram/IGListKit/commit/b4dc116e * This is currently breaking our CI build Pull Request resolved: https://github.com/Instagram/IGListKit/pull/1425 Reviewed By: joetam Differential Revision: D19701505 Pulled By: bdotdub fbshipit-source-id: f7be49c7b2e78ae283a9fa602192fceabbbe597c --- Source/IGListKit/IGListBindingSingleSectionController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/IGListKit/IGListBindingSingleSectionController.m b/Source/IGListKit/IGListBindingSingleSectionController.m index 768f2235..bcffa33c 100644 --- a/Source/IGListKit/IGListBindingSingleSectionController.m +++ b/Source/IGListKit/IGListBindingSingleSectionController.m @@ -89,14 +89,14 @@ - (UICollectionViewCell *)cellForItemAtIndex:(NSInteger)index { IGParameterAssert(index == 0); UICollectionViewCell *cell = [self.collectionContext dequeueReusableCellOfClass:[self cellClass] forSectionController:self atIndex:index]; - IGAssertNonnull(cell); + IGAssert(cell != nil, @"could not find a cell of class %@", NSStringFromClass([self cellClass])); [self configureCell:cell withViewModel:_item]; return cell; } - (void)didUpdateToObject:(id)object { _item = object; - + if (_enabledCellConfigurationDuringUpdate) { if (_displayingCell) { [self configureCell:_displayingCell withViewModel:_item];