From 013223ca8e14ebe25d0d11ed6cadd1bc26aa53b4 Mon Sep 17 00:00:00 2001 From: jackylee Date: Sat, 13 Feb 2021 23:56:56 +0800 Subject: [PATCH] Update UIView+WebCache.m fix typo error from `callCompletedBlockClojure` to `callCompletedBlockClosure` --- SDWebImage/Core/UIView+WebCache.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/SDWebImage/Core/UIView+WebCache.m b/SDWebImage/Core/UIView+WebCache.m index 5b4596e1..d559b4cc 100644 --- a/SDWebImage/Core/UIView+WebCache.m +++ b/SDWebImage/Core/UIView+WebCache.m @@ -141,7 +141,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL; BOOL shouldCallCompletedBlock = finished || (options & SDWebImageAvoidAutoSetImage); BOOL shouldNotSetImage = ((image && (options & SDWebImageAvoidAutoSetImage)) || (!image && !(options & SDWebImageDelayPlaceholder))); - SDWebImageNoParamsBlock callCompletedBlockClojure = ^{ + SDWebImageNoParamsBlock callCompletedBlockClosure = ^{ if (!self) { return; } if (!shouldNotSetImage) { [self sd_setNeedsLayout]; @@ -155,7 +155,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL; // OR // case 1b: we got no image and the SDWebImageDelayPlaceholder is not set if (shouldNotSetImage) { - dispatch_main_async_safe(callCompletedBlockClojure); + dispatch_main_async_safe(callCompletedBlockClosure); return; } @@ -206,7 +206,7 @@ const int64_t SDWebImageProgressUnitCountUnknown = 1LL; #else [self sd_setImage:targetImage imageData:targetData basedOnClassOrViaCustomSetImageBlock:setImageBlock cacheType:cacheType imageURL:imageURL]; #endif - callCompletedBlockClojure(); + callCompletedBlockClosure(); }); }]; [self sd_setImageLoadOperation:operation forKey:validOperationKey];