feat:fix warning
This commit is contained in:
parent
c03ff31aae
commit
5b4266d0fd
@ -102,8 +102,8 @@ - (NSString *)getText {
|
|||||||
}
|
}
|
||||||
|
|
||||||
- (void)setSelection:(NSDictionary *)params withPromise:(DoricPromise *)promise {
|
- (void)setSelection:(NSDictionary *)params withPromise:(DoricPromise *)promise {
|
||||||
NSString *start = [params objectForKey:@"start"];
|
NSString *start = params[@"start"];
|
||||||
NSString *end = [params objectForKey:@"end"];
|
NSString *end = params[@"end"];
|
||||||
|
|
||||||
if (([start isKindOfClass:[NSString class]] || [start isKindOfClass:[NSNumber class]]) &&
|
if (([start isKindOfClass:[NSString class]] || [start isKindOfClass:[NSNumber class]]) &&
|
||||||
([start isKindOfClass:[NSString class]] || [start isKindOfClass:[NSNumber class]])) {
|
([start isKindOfClass:[NSString class]] || [start isKindOfClass:[NSNumber class]])) {
|
||||||
|
Reference in New Issue
Block a user