Fix the silly mistake that view category internal completion block call swapped cacheType and finished arg

This commit is contained in:
DreamPiggy 2018-04-14 16:59:34 +08:00
parent 95ace107e8
commit 7272cf78e5
1 changed files with 1 additions and 1 deletions

View File

@ -179,7 +179,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL;
dispatch_main_async_safe(^{ dispatch_main_async_safe(^{
if (completedBlock) { if (completedBlock) {
NSError *error = [NSError errorWithDomain:SDWebImageErrorDomain code:-1 userInfo:@{NSLocalizedDescriptionKey : @"Trying to load a nil url"}]; NSError *error = [NSError errorWithDomain:SDWebImageErrorDomain code:-1 userInfo:@{NSLocalizedDescriptionKey : @"Trying to load a nil url"}];
completedBlock(nil, nil, error, YES, SDImageCacheTypeNone, url); completedBlock(nil, nil, error, SDImageCacheTypeNone, YES, url);
} }
}); });
} }