From 99dc9a8e61aad839def448f0440508b14806fe64 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Mon, 1 Jul 2024 18:28:20 +0800 Subject: [PATCH] [NFC] Fix the variable naming --- SDWebImage/Core/SDImageCacheDefine.m | 6 +++--- SDWebImage/Core/SDImageLoader.m | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) 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