8000 ref(core): Remove check for scope in `_sendSessionUpdate` (#7693) · ileonovdima/sentry-javascript@b5952df · GitHub
[go: up one dir, main page]

Skip to content

Commit b5952df

Browse files
authored
ref(core): Remove check for scope in _sendSessionUpdate (getsentry#7693)
1 parent 3723da4 commit b5952df

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

packages/core/src/hub.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -446,13 +446,10 @@ export class Hub implements HubInterface {
446446
*/
447447
private _sendSessionUpdate(): void {
448< 8265 /td>448
const { scope, client } = this.getStackTop();
449-
if (!scope) return;
450449

451450
const session = scope.getSession();
452-
if (session) {
453-
if (client && client.captureSession) {
454-
client.captureSession(session);
455-
}
451+
if (session && client && client.captureSession) {
452+
client.captureSession(session);
456453
}
457454
}
458455

0 commit comments

Comments
 (0)
0