Skip to content

Commit

Permalink
Update Sources/Sentry/SentryProfiler.mm
Browse files Browse the repository at this point in the history
Co-authored-by: Dhiogo Brustolin <[email protected]>
  • Loading branch information
armcknight and brustolin authored Sep 7, 2022
1 parent 39b0ec4 commit 4c2631d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Sentry/SentryProfiler.mm
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ - (SentryEnvelope *)buildEnvelopeItemForTransactions:(NSArray<SentryTransaction

// populate info from all transactions that occurred while profiler was running
profile[@"platform"] = transactions.firstObject.platform;
auto transactionsInfo = [NSMutableArray array];
auto transactionsInfo = [[NSMutableArray alloc] initWithCapacity:transactions.count];
for (SentryTransaction *transaction in transactions) {
[transactionsInfo addObject:@{
@"environment" : hub.scope.environmentString ?: hub.getClient.options.environment ?: kSentryDefaultEnvironment,
Expand Down

0 comments on commit 4c2631d

Please sign in to comment.