Skip to content

Commit

Permalink
ref(core): Directly use endSession (#11669)
Browse files Browse the repository at this point in the history
Instead of using `this.endSession`, directly use `endSession`.
  • Loading branch information
AbhiPrasad authored Apr 18, 2024
1 parent 97b077a commit c90048f
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions packages/core/src/getCurrentHubShim.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c90048f

Please sign in to comment.