fix 'nullable' to 'nonull'

This commit is contained in:
Ming Zhang 2018-01-10 19:39:48 +08:00
parent a6c0570987
commit 803210912d
2 changed files with 2 additions and 2 deletions

View File

@ -222,7 +222,7 @@ SDWebImageManager *manager = [SDWebImageManager sharedManager];
- (nullable id <SDWebImageOperation>)loadImageWithURL:(nullable NSURL *)url
options:(SDWebImageOptions)options
progress:(nullable SDWebImageDownloaderProgressBlock)progressBlock
completed:(nullable SDInternalCompletionBlock)completedBlock;
completed:(nonnull SDInternalCompletionBlock)completedBlock;
/**
* Saves image to cache for given URL

View File

@ -109,7 +109,7 @@
- (id <SDWebImageOperation>)loadImageWithURL:(nullable NSURL *)url
options:(SDWebImageOptions)options
progress:(nullable SDWebImageDownloaderProgressBlock)progressBlock
completed:(nullable SDInternalCompletionBlock)completedBlock {
completed:(nonnull SDInternalCompletionBlock)completedBlock {
// Invoking this method without a completedBlock is pointless
NSAssert(completedBlock != nil, @"If you mean to prefetch the image, use -[SDWebImagePrefetcher prefetchURLs] instead");