Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/CodeCaps/SentryTelemetry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ enum SentryTelemetry {
options.beforeSend = { event in
if isThirdPartyFailedRequest(
url: event.request?.url,
exceptionTypes: event.exceptions?.map(\.type) ?? []
exceptionTypes: event.exceptions?.compactMap { $0.type } ?? []
Comment thread
jaywedgeworth22 marked this conversation as resolved.
Resolved
) { return nil }
return sanitize(event)
}
Expand Down
2 changes: 1 addition & 1 deletion ios/CodeCapsCompanion/App/SentryTelemetry.swift
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ enum SentryTelemetry {
options.beforeSend = { event in
if isThirdPartyFailedRequest(
url: event.request?.url,
exceptionTypes: event.exceptions?.map(\.type) ?? []
exceptionTypes: event.exceptions?.compactMap { $0.type } ?? []
) { return nil }
return sanitize(event)
}
Expand Down
Loading