diff --git a/packages/core/src/getCurrentHubShim.ts b/packages/core/src/getCurrentHubShim.ts index 3da344fcba1a..46f8f94cb490 100644 --- a/packages/core/src/getCurrentHubShim.ts +++ b/packages/core/src/getCurrentHubShim.ts @@ -54,14 +54,11 @@ export function getCurrentHubShim(): Hub { }, startSession, - endSession, - - captureSession(endSession?: boolean): void { + captureSession(end?: boolean): void { // both send the update and pull the session from the scope - if (endSession) { - // eslint-disable-next-line deprecation/deprecation - return this.endSession(); + if (end) { + return endSession(); } // only send the update