Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Lukas Stracke <lukas.stracke@sentry.io>
  • Loading branch information
mydea and Lms24 committed Feb 9, 2023
1 parent c6cd14d commit 1761ca8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions packages/replay/src/replay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -812,8 +812,7 @@ export class ReplayContainer implements ReplayContainerInterface {
// In this case, we want to completely stop the replay - otherwise, we may get inconsistent segments
this.stop();

const hub = getCurrentHub();
const client = hub.getClient();
const client = getCurrentHub().getClient();

if (client) {
client.recordDroppedEvent('send_error', 'replay');
Expand Down
3 changes: 1 addition & 2 deletions packages/replay/src/util/addEvent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@ export async function addEvent(
__DEBUG_BUILD__ && logger.error(error);
replay.stop();

const hub = getCurrentHub();
const client = hub.getClient();
const client = getCurrentHub().getClient();

if (client) {
client.recordDroppedEvent('internal_sdk_error', 'replay');
Expand Down

0 comments on commit 1761ca8

Please sign in to comment.