File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
packages/node/src/integrations Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ export class LinkedErrors implements Integration {
43
43
addGlobalEventProcessor ( ( event : Event , hint ?: EventHint ) => {
44
44
const self = getCurrentHub ( ) . getIntegration ( LinkedErrors ) ;
45
45
if ( self ) {
46
- return ( self . handler ( event , hint ) as unknown ) as Promise < Event | null > ;
46
+ return ( self . handler ( event , hint ) as unknown ) as Promise < Event > ;
47
47
}
48
48
return event ;
49
49
} ) ;
@@ -52,12 +52,12 @@ export class LinkedErrors implements Integration {
52
52
/**
53
53
* @inheritDoc
54
54
*/
55
- public handler ( event : Event , hint ?: EventHint ) : SyncPromise < Event | null > {
55
+ public handler ( event : Event , hint ?: EventHint ) : SyncPromise < Event > {
56
56
if ( ! event . exception || ! event . exception . values || ! hint || ! ( hint . originalException instanceof Error ) ) {
57
57
return SyncPromise . resolve ( event ) ;
58
58
}
59
59
60
- return new SyncPromise < Event | null > ( resolve => {
60
+ return new SyncPromise < Event > ( resolve => {
61
61
this . walkErrorTree ( hint . originalException as ExtendedError , this . _key ) . then ( ( linkedErrors : Exception [ ] ) => {
62
62
if ( event && event . exception && event . exception . values ) {
63
63
event . exception . values = [ ...linkedErrors , ...event . exception . values ] ;
You can’t perform that action at this time.
0 commit comments