Skip to content

Commit

Permalink
ref: Remove not needed check for SentryTracer (#2836)
Browse files Browse the repository at this point in the history
Remove not needed check for isKindOfClass SentryTracer in SentryPerformanceTracker
as the code calls startTransactionWithContext which always returns a SentryTracer.
  • Loading branch information
philipphofmann committed Mar 27, 2023
1 parent 1bbcb9c commit e79ead7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Sources/Sentry/SentryPerformanceTracker.m
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,7 @@ - (SentrySpanId *)startSpanWithName:(NSString *)name
customSamplingContext:@{}
timerWrapper:nil];

if ([newSpan isKindOfClass:[SentryTracer class]]) {
[(SentryTracer *)newSpan setDelegate:self];
}
[(SentryTracer *)newSpan setDelegate:self];
}];
}

Expand Down

0 comments on commit e79ead7

Please sign in to comment.