[NFC] Fix the variable naming

This commit is contained in:
DreamPiggy 2024-07-01 18:28:20 +08:00
parent bcbe72a77f
commit 99dc9a8e61
2 changed files with 9 additions and 9 deletions

View File

@ -124,9 +124,9 @@ UIImage * _Nullable SDImageCacheDecodeImageData(NSData * _Nonnull imageData, NSS
} }
if (image) { if (image) {
SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic; SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic;
NSNumber *polivyValue = context[SDWebImageContextImageForceDecodePolicy]; NSNumber *policyValue = context[SDWebImageContextImageForceDecodePolicy];
if (polivyValue != nil) { if (policyValue != nil) {
policy = polivyValue.unsignedIntegerValue; policy = policyValue.unsignedIntegerValue;
} }
// TODO: Deprecated, remove in SD 6.0... // TODO: Deprecated, remove in SD 6.0...
#pragma clang diagnostic push #pragma clang diagnostic push

View File

@ -75,9 +75,9 @@ UIImage * _Nullable SDImageLoaderDecodeImageData(NSData * _Nonnull imageData, NS
} }
if (image) { if (image) {
SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic; SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic;
NSNumber *polivyValue = context[SDWebImageContextImageForceDecodePolicy]; NSNumber *policyValue = context[SDWebImageContextImageForceDecodePolicy];
if (polivyValue != nil) { if (policyValue != nil) {
policy = polivyValue.unsignedIntegerValue; policy = policyValue.unsignedIntegerValue;
} }
// TODO: Deprecated, remove in SD 6.0... // TODO: Deprecated, remove in SD 6.0...
#pragma clang diagnostic push #pragma clang diagnostic push
@ -156,9 +156,9 @@ UIImage * _Nullable SDImageLoaderDecodeProgressiveImageData(NSData * _Nonnull im
} }
if (image) { if (image) {
SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic; SDImageForceDecodePolicy policy = SDImageForceDecodePolicyAutomatic;
NSNumber *polivyValue = context[SDWebImageContextImageForceDecodePolicy]; NSNumber *policyValue = context[SDWebImageContextImageForceDecodePolicy];
if (polivyValue != nil) { if (policyValue != nil) {
policy = polivyValue.unsignedIntegerValue; policy = policyValue.unsignedIntegerValue;
} }
// TODO: Deprecated, remove in SD 6.0... // TODO: Deprecated, remove in SD 6.0...
#pragma clang diagnostic push #pragma clang diagnostic push