Skip to content

Commit c90048f

Browse files
authored
ref(core): Directly use endSession (#11669)
Instead of using `this.endSession`, directly use `endSession`.
1 parent 97b077a commit c90048f

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

packages/core/src/getCurrentHubShim.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,11 @@ export function getCurrentHubShim(): Hub {
5454
},
5555

5656
startSession,
57-
5857
endSession,
59-
60-
captureSession(endSession?: boolean): void {
58+
captureSession(end?: boolean): void {
6159
// both send the update and pull the session from the scope
62-
if (endSession) {
63-
// eslint-disable-next-line deprecation/deprecation
64-
return this.endSession();
60+
if (end) {
61+
return endSession();
6562
}
6663

6764
// only send the update

0 commit comments

Comments
 (0)