Skip to content

Commit c9e24bf

Browse files
committed
ref(replay): Avoid optional chaining
1 parent 78f62e3 commit c9e24bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/replay/src/replay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ export class ReplayContainer implements ReplayContainerInterface {
927927
const hub = getCurrentHub();
928928
const client = hub.getClient();
929929
const scope = hub.getScope();
930-
const transport = client?.getTransport();
930+
const transport = client && client.getTransport();
931931

932932
if (!client || !scope || !transport) {
933933
return;

0 commit comments

Comments
 (0)