Skip to content

Commit 54bcce4

Browse files
romtsnclaude
andcommitted
docs: use any{} in changelog example
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 84f0274 commit 54bcce4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

CHANGELOG.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,8 @@
1313
options.sessionReplay.beforeErrorSampling =
1414
SentryReplayOptions.BeforeErrorSamplingCallback { event, hint ->
1515
// Skip replay for handled exceptions
16-
val dominated = event.exceptions?.lastOrNull()
17-
val isHandled = dominated?.mechanism?.isHandled == true
18-
!isHandled
16+
val hasUnhandled = event.exceptions?.any { it.mechanism?.isHandled == false } == true
17+
hasUnhandled
1918
}
2019
}
2120
```

0 commit comments

Comments
 (0)