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:
Ryan Nystrom 2017-03-23 11:34:37 -07:00 committed by Facebook Github Bot
parent 1818c20e5f
commit ca9e9a16b7

View file

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