Skip to content

Commit

Permalink
chore(ios): simplified code change for TIMOB-28420
Browse files Browse the repository at this point in the history
  • Loading branch information
jquick-axway authored and ewanharris committed Jun 17, 2021
1 parent 965705c commit 400f9de
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions iphone/TitaniumKit/TitaniumKit/Sources/API/TiExceptionHandler.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,16 +156,13 @@ - (id)initWithDictionary:(NSDictionary *)dictionary
_dictionaryValue = [dictionary copy];

id nativeStackObject = [dictionary objectForKey:@"nativeStack"];
if (nativeStackObject) {
if ([nativeStackObject isKindOfClass:[NSArray class]]) {
nativeStackObject = [nativeStackObject copy];
} else if ([nativeStackObject isKindOfClass:[NSString class]]) {
nativeStackObject = [[nativeStackObject componentsSeparatedByString:@"\n"] retain];
} else {
nativeStackObject = nil;
}
if ([nativeStackObject isKindOfClass:[NSArray class]]) {
_nativeStack = [nativeStackObject copy];
} else if ([nativeStackObject isKindOfClass:[NSString class]]) {
_nativeStack = [[nativeStackObject componentsSeparatedByString:@"\n"] retain];
} else {
_nativeStack = nil;
}
_nativeStack = nativeStackObject;
}
return self;
}
Expand Down

0 comments on commit 400f9de

Please sign in to comment.