mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-24 09:48:21 +00:00
Fix unused variable warning when asserts compiled out
Summary: Found this examining Travis output. Warning removed when asserts aren't compiled. Closes https://github.com/Instagram/IGListKit/pull/580 Differential Revision: D4763179 Pulled By: rnystrom fbshipit-source-id: af23780387e8d8f95f11fe778d91e281006ff6fb
This commit is contained in:
parent
1818c20e5f
commit
ca9e9a16b7
1 changed files with 1 additions and 2 deletions
|
|
@ -1054,8 +1054,7 @@
|
|||
IGAssertMainThread();
|
||||
IGParameterAssert(indexes != nil);
|
||||
IGParameterAssert(sectionController != nil);
|
||||
UICollectionView *collectionView = self.collectionView;
|
||||
IGAssert(collectionView != nil, @"Tried to reload the adapter from %@ without a collection view at indexes %@.", sectionController, indexes);
|
||||
IGAssert(self.collectionView != nil, @"Tried to reload the adapter from %@ without a collection view at indexes %@.", sectionController, indexes);
|
||||
|
||||
if (indexes.count == 0) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Reference in a new issue