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
This commit is contained in:
Benny Wong 2020-02-11 08:40:07 -08:00 committed by Facebook Github Bot
parent a9ecf5d476
commit fecf9e4124

View file

@ -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];