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 {
186186 // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
187187 public captureException ( exception : any , hint ?: EventHint ) : string {
188188 const syntheticException = new Error ( 'Sentry syntheticException' ) ;
189- return ( this . _lastEventId =
189+ this . _lastEventId =
190190 this . _withClient ( ( client , scope ) => {
191191 return client . captureException (
192192 exception ,
@@ -197,7 +197,8 @@ export class Hub implements HubInterface {
197197 } ,
198198 scope ,
199199 ) ;
200- } ) || NIL_EVENT_ID ) ;
200+ } ) || NIL_EVENT_ID ;
201+ return this . _lastEventId ;
201202 }
202203
203204 /**
@@ -210,7 +211,7 @@ export class Hub implements HubInterface {
210211 hint ?: EventHint ,
211212 ) : string {
212213 const syntheticException = new Error ( message ) ;
213- return ( this . _lastEventId =
214+ this . _lastEventId =
214215 this . _withClient ( ( client , scope ) => {
215216 return client . captureMessage (
216217 message ,
@@ -222,7 +223,8 @@ export class Hub implements HubInterface {
222223 } ,
223224 scope ,
224225 ) ;
225- } ) || NIL_EVENT_ID ) ;
226+ } ) || NIL_EVENT_ID ;
227+ return this . _lastEventId ;
226228 }
227229
228230 /**
You can’t perform that action at this time.
0 commit comments