Skip to content

Commit 0f1d091

Browse files
committed
ref(replay): Avoid optional chaining
1 parent 2bca460 commit 0f1d091

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
@@ -922,7 +922,7 @@ export class ReplayContainer implements ReplayContainerInterface {
922922
const hub = getCurrentHub();
923923
const client = hub.getClient();
924924
const scope = hub.getScope();
925-
const transport = client?.getTransport();
925+
const transport = client && client.getTransport();
926926

927927
if (!client || !scope || !transport) {
928928
return;

0 commit comments

Comments
 (0)