Merge pull request #2760 from dreampiggy/warning_fix_nullable_check

Fix the Clang Static Analysis warning of `addEntriesFromDictionary:` API
This commit is contained in:
DreamPiggy 2019-06-17 17:32:34 +08:00 committed by GitHub
commit eac8eca936
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -416,7 +416,9 @@ static id<SDImageLoader> _defaultImageLoader;
}
if (mutableContext.count > 0) {
if (context) {
[mutableContext addEntriesFromDictionary:context];
}
context = [mutableContext copy];
}