From 7272cf78e574ee20f1d99a0c76de4c0e13b99449 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sat, 14 Apr 2018 16:59:34 +0800 Subject: [PATCH] Fix the silly mistake that view category internal completion block call swapped cacheType and finished arg --- SDWebImage/UIView+WebCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SDWebImage/UIView+WebCache.m b/SDWebImage/UIView+WebCache.m index a651b9ec..59666b6b 100644 --- a/SDWebImage/UIView+WebCache.m +++ b/SDWebImage/UIView+WebCache.m @@ -179,7 +179,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL; dispatch_main_async_safe(^{ if (completedBlock) { 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); } }); }