Skip to content

Commit 49c9caf

Browse files
will it fix lint?
1 parent 38f9fcd commit 49c9caf

File tree

1 file changed

+4
-17
lines changed

1 file changed

+4
-17
lines changed

packages/core/ios/RNSentry.mm

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,12 @@ - (BOOL)shouldIgnoreError:(NSString *)message
184184
}
185185

186186
for (NSString *str in _ignoreErrorPatternsStr) {
187-
if ([message containsString:str]) {
187+
if ([message containsString:str])
188+
{
188189
return YES;
189190
}
190191
}
191-
192+
192193
for (NSRegularExpression *regex in _ignoreErrorPatternsRegex) {
193194
NSRange range = NSMakeRange(0, message.length);
194195
if ([regex firstMatchInString:message options:0 range:range]) {
@@ -236,21 +237,7 @@ - (SentryOptions *_Nullable)createOptionsWithDictionary:(NSDictionary *_Nonnull)
236237
// set themselves.
237238
[mutableOptions removeObjectForKey:@"tracesSampleRate"];
238239
[mutableOptions removeObjectForKey:@"tracesSampler"];
239-
[mutableOptions removeObjectForKey:@"enableTracing"];
240-
241-
#if SENTRY_TARGET_REPLAY_SUPPORTED
242-
[RNSentryReplay updateOptions:mutableOptions];
243-
#endif
244-
245-
SentryOptions *sentryOptions = [[SentryOptions alloc] initWithDict:mutableOptions
246-
didFailWithError:errorPointer];
247-
if (*errorPointer != nil) {
248-
return nil;
249-
}
250-
251-
// Exclude Dev Server and Sentry Dsn request from Breadcrumbs
252-
NSString *dsn = [self getURLFromDSN:[mutableOptions valueForKey:@"dsn"]];
253-
NSString *devServerUrl = [mutableOptions valueForKey:@"devServerUrl"];
240+
[mutableOptions removeObjectForKey:@lz/v7/ignore-errorsions valueForKey:@"devServerUrl"];
254241
sentryOptions.beforeBreadcrumb
255242
= ^SentryBreadcrumb *_Nullable(SentryBreadcrumb *_Nonnull breadcrumb)
256243
{

0 commit comments

Comments
 (0)