File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -186,7 +186,7 @@ export class Hub implements HubInterface {
186
186
// eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
187
187
public captureException ( exception : any , hint ?: EventHint ) : string {
188
188
const syntheticException = new Error ( 'Sentry syntheticException' ) ;
189
- return ( this . _lastEventId =
189
+ this . _lastEventId =
190
190
this . _withClient ( ( client , scope ) => {
191
191
return client . captureException (
192
192
exception ,
@@ -197,7 +197,8 @@ export class Hub implements HubInterface {
197
197
} ,
198
198
scope ,
199
199
) ;
200
- } ) || NIL_EVENT_ID ) ;
200
+ } ) || NIL_EVENT_ID ;
201
+ return this . _lastEventId ;
201
202
}
202
203
203
204
/**
@@ -210,7 +211,7 @@ export class Hub implements HubInterface {
210
211
hint ?: EventHint ,
211
212
) : string {
212
213
const syntheticException = new Error ( message ) ;
213
- return ( this . _lastEventId =
214
+ this . _lastEventId =
214
215
this . _withClient ( ( client , scope ) => {
215
216
return client . captureMessage (
216
217
message ,
@@ -222,7 +223,8 @@ export class Hub implements HubInterface {
222
223
} ,
223
224
scope ,
224
225
) ;
225
- } ) || NIL_EVENT_ID ) ;
226
+ } ) || NIL_EVENT_ID ;
227
+ return this . _lastEventId ;
226
228
}
227
229
228
230
/**
You can’t perform that action at this time.
0 commit comments