diff --git a/SDWebImage/Core/SDImageCacheDefine.m b/SDWebImage/Core/SDImageCacheDefine.m index 741d57cd..a0d1628d 100644 --- a/SDWebImage/Core/SDImageCacheDefine.m +++ b/SDWebImage/Core/SDImageCacheDefine.m @@ -124,9 +124,9 @@ UIImage * _Nullable SDImageCacheDecodeImageData(NSData * _Nonnull imageData, NSS } if (image) { SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic; - NSNumber *polivyValue = context[SDWebImageContextImageForceDecodePolicy]; - if (polivyValue != nil) { - policy = polivyValue.unsignedIntegerValue; + NSNumber *policyValue = context[SDWebImageContextImageForceDecodePolicy]; + if (policyValue != nil) { + policy = policyValue.unsignedIntegerValue; } // TODO: Deprecated, remove in SD 6.0... #pragma clang diagnostic push diff --git a/SDWebImage/Core/SDImageLoader.m b/SDWebImage/Core/SDImageLoader.m index b302b5b9..9c6c2687 100644 --- a/SDWebImage/Core/SDImageLoader.m +++ b/SDWebImage/Core/SDImageLoader.m @@ -75,9 +75,9 @@ UIImage * _Nullable SDImageLoaderDecodeImageData(NSData * _Nonnull imageData, NS } if (image) { SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic; - NSNumber *polivyValue = context[SDWebImageContextImageForceDecodePolicy]; - if (polivyValue != nil) { - policy = polivyValue.unsignedIntegerValue; + NSNumber *policyValue = context[SDWebImageContextImageForceDecodePolicy]; + if (policyValue != nil) { + policy = policyValue.unsignedIntegerValue; } // TODO: Deprecated, remove in SD 6.0... #pragma clang diagnostic push @@ -156,9 +156,9 @@ UIImage * _Nullable SDImageLoaderDecodeProgressiveImageData(NSData * _Nonnull im } if (image) { SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic; - NSNumber *polivyValue = context[SDWebImageContextImageForceDecodePolicy]; - if (polivyValue != nil) { - policy = polivyValue.unsignedIntegerValue; + NSNumber *policyValue = context[SDWebImageContextImageForceDecodePolicy]; + if (policyValue != nil) { + policy = policyValue.unsignedIntegerValue; } // TODO: Deprecated, remove in SD 6.0... #pragma clang diagnostic push