feat:fix warning

This commit is contained in:
jiangteng 2019-12-11 14:29:29 +08:00
parent c03ff31aae
commit 5b4266d0fd

View File

@ -102,8 +102,8 @@ - (NSString *)getText {
}
- (void)setSelection:(NSDictionary *)params withPromise:(DoricPromise *)promise {
NSString *start = [params objectForKey:@"start"];
NSString *end = [params objectForKey:@"end"];
NSString *start = params[@"start"];
NSString *end = params[@"end"];
if (([start isKindOfClass:[NSString class]] || [start isKindOfClass:[NSNumber class]]) &&
([start isKindOfClass:[NSString class]] || [start isKindOfClass:[NSNumber class]])) {