From fe172451e2e84af4c28935bdb9a0801e81fade55 Mon Sep 17 00:00:00 2001 From: Ben Asher Date: Tue, 11 Oct 2016 19:08:20 -0700 Subject: [PATCH] Fix not returning when completion is nil. Fix some spelling --- Source/IGListAdapter.h | 4 ++-- Source/IGListAdapter.m | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Source/IGListAdapter.h b/Source/IGListAdapter.h index 79f50eec2..5e4f76c39 100644 --- a/Source/IGListAdapter.h +++ b/Source/IGListAdapter.h @@ -103,14 +103,14 @@ IGLK_SUBCLASSING_RESTRICTED - (void)performUpdatesAnimated:(BOOL)animated completion:(nullable IGListUpdaterCompletion)completion; /** - Perform an immediate reload of the data in the data source, discarding the old objectss. + Perform an immediate reload of the data in the data source, discarding the old objects. @param completion A block executed when the reload completes. */ - (void)reloadDataWithCompletion:(nullable IGListUpdaterCompletion)completion; /** - Reload the infra for specific objectss only. + Reload the infra for specific objects only. @param objects The objects to reload. */ diff --git a/Source/IGListAdapter.m b/Source/IGListAdapter.m index cb9524b24..05610204f 100644 --- a/Source/IGListAdapter.m +++ b/Source/IGListAdapter.m @@ -248,8 +248,8 @@ - (void)reloadDataWithCompletion:(nullable IGListUpdaterCompletion)completion { if (dataSource == nil || collectionView == nil) { if (completion) { completion(NO); - return; } + return; } NSArray *newItems = [[dataSource objectsForListAdapter:self] copy];