mirror of
https://github.com/status-im/react-native.git
synced 2025-02-03 05:03:42 +00:00
Silence analyzer warning for nil-checking NSNumber
Reviewed By: @jspahrsummers Differential Revision: D2503068
This commit is contained in:
parent
6f84ccf51a
commit
0fb2fb37cc
@ -317,7 +317,7 @@ static void RCTConvertCGStructValue(const char *type, NSArray *fields, NSDiction
|
|||||||
for (NSString *alias in aliases) {
|
for (NSString *alias in aliases) {
|
||||||
NSString *key = aliases[alias];
|
NSString *key = aliases[alias];
|
||||||
NSNumber *number = json[alias];
|
NSNumber *number = json[alias];
|
||||||
if (number) {
|
if (number != nil) {
|
||||||
RCTLogWarn(@"Using deprecated '%@' property for '%s'. Use '%@' instead.", alias, type, key);
|
RCTLogWarn(@"Using deprecated '%@' property for '%s'. Use '%@' instead.", alias, type, key);
|
||||||
((NSMutableDictionary *)json)[key] = number;
|
((NSMutableDictionary *)json)[key] = number;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user