Merge pull request #2760 from dreampiggy/warning_fix_nullable_check
Fix the Clang Static Analysis warning of `addEntriesFromDictionary:` API
This commit is contained in:
commit
eac8eca936
|
@ -416,7 +416,9 @@ static id<SDImageLoader> _defaultImageLoader;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (mutableContext.count > 0) {
|
if (mutableContext.count > 0) {
|
||||||
|
if (context) {
|
||||||
[mutableContext addEntriesFromDictionary:context];
|
[mutableContext addEntriesFromDictionary:context];
|
||||||
|
}
|
||||||
context = [mutableContext copy];
|
context = [mutableContext copy];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue