From 7883b4c26e13c7703d25a0810de93b14a7b23dd1 Mon Sep 17 00:00:00 2001 From: Abhijeet Prasad Date: Fri, 31 Mar 2023 13:41:08 +0200 Subject: [PATCH] ref(core): Remove check for scope in `_sendSessionUpdate` --- packages/core/src/hub.ts | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/packages/core/src/hub.ts b/packages/core/src/hub.ts index f67ae3773325..6f109dfe1ce4 100644 --- a/packages/core/src/hub.ts +++ b/packages/core/src/hub.ts @@ -446,13 +446,10 @@ export class Hub implements HubInterface { */ private _sendSessionUpdate(): void { const { scope, client } = this.getStackTop(); - if (!scope) return; const session = scope.getSession(); - if (session) { - if (client && client.captureSession) { - client.captureSession(session); - } + if (session && client && client.captureSession) { + client.captureSession(session); } }