Skip to content

Commit

Permalink
Fixes lint issue
Browse files Browse the repository at this point in the history
  • Loading branch information
antonis committed Nov 6, 2024
1 parent 52c9e54 commit 81a11c3
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/core/ios/RNSentry.mm
Original file line number Diff line number Diff line change
Expand Up @@ -438,12 +438,14 @@ - (NSDictionary *)fetchNativeStackFramesBy:(NSArray<NSNumber *> *)instructionsAd

[serializedScope setValue:contexts forKey:@"contexts"];
[serializedScope removeObjectForKey:@"context"];

// Remove react-native breadcrumbs
NSPredicate *removeRNBreadcrumbsPredicate = [NSPredicate predicateWithBlock:^BOOL(NSDictionary *breadcrumb, NSDictionary *bindings) {
return ![breadcrumb[@"origin"] isEqualToString:@"react-native"];
}];
NSArray *breadcrumbs = [[serializedScope[@"breadcrumbs"] mutableCopy] filteredArrayUsingPredicate:removeRNBreadcrumbsPredicate];
NSPredicate *removeRNBreadcrumbsPredicate =
[NSPredicate predicateWithBlock:^BOOL(NSDictionary *breadcrumb, NSDictionary *bindings) {
return ![breadcrumb[@"origin"] isEqualToString:@"react-native"];
}];
NSArray *breadcrumbs = [[serializedScope[@"breadcrumbs"] mutableCopy]
filteredArrayUsingPredicate:removeRNBreadcrumbsPredicate];
[serializedScope setValue:breadcrumbs forKey:@"breadcrumbs"];

resolve(serializedScope);
Expand Down

0 comments on commit 81a11c3

Please sign in to comment.