mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-23 09:18:29 +00:00
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:
parent
a9ecf5d476
commit
fecf9e4124
1 changed files with 2 additions and 2 deletions
|
|
@ -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];
|
||||
|
|
|
|||
Loading…
Reference in a new issue