Skip to content

Commit 8f810c2

Browse files
committed
explicit returns
1 parent 83518f4 commit 8f810c2

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

packages/core/src/hub.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
 (0)