Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ref(hub): Convert Session class to object and functions #5054

Merged
merged 15 commits into from
May 11, 2022
Merged
Prev Previous commit
remove scope.getSession definedness check
  • Loading branch information
Lms24 committed May 11, 2022
commit 6dc3e506efe4b79c85d879f83abf46be58cf0277
2 changes: 1 addition & 1 deletion packages/hub/src/hub.ts
Original file line number Diff line number Diff line change
@@ -447,7 +447,7 @@ export class Hub implements HubInterface {
const { scope, client } = this.getStackTop();
if (!scope) return;

const session = scope.getSession && scope.getSession();
const session = scope.getSession();
if (session) {
if (client && client.captureSession) {
client.captureSession(session);