Skip to content

Commit 1761ca8

Browse files
mydeaLms24
andauthored
Apply suggestions from code review
Co-authored-by: Lukas Stracke <[email protected]>
1 parent c6cd14d commit 1761ca8

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

packages/replay/src/replay.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -812,8 +812,7 @@ export class ReplayContainer implements ReplayContainerInterface {
812812
// In this case, we want to completely stop the replay - otherwise, we may get inconsistent segments
813813
this.stop();
814814

815-
const hub = getCurrentHub();
816-
const client = hub.getClient();
815+
const client = getCurrentHub().getClient();
817816

818817
if (client) {
819818
client.recordDroppedEvent('send_error', 'replay');

packages/replay/src/util/addEvent.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ export async function addEvent(
4848
__DEBUG_BUILD__ && logger.error(error);
4949
replay.stop();
5050

51-
const hub = getCurrentHub();
52-
const client = hub.getClient();
51+
const client = getCurrentHub().getClient();
5352

5453
if (client) {
5554
client.recordDroppedEvent('internal_sdk_error', 'replay');

0 commit comments

Comments
 (0)