From ca9e9a16b74f34b11e6dd5d6f640d8d964f9189c Mon Sep 17 00:00:00 2001 From: Ryan Nystrom Date: Thu, 23 Mar 2017 11:34:37 -0700 Subject: [PATCH] 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 --- Source/IGListAdapter.m | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Source/IGListAdapter.m b/Source/IGListAdapter.m index 5f57f34d..b9ab96b5 100644 --- a/Source/IGListAdapter.m +++ b/Source/IGListAdapter.m @@ -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;