Skip to content

Commit 23b3d40

Browse files
committed
small ref
1 parent 01f5840 commit 23b3d40

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

packages/replay-internal/src/coreHandlers/handleAfterSendEvent.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@ export function handleAfterSendEvent(replay: ReplayContainer): AfterSendEventCal
1414
return;
1515
}
1616

17-
const statusCode = sendResponse?.statusCode;
17+
const statusCode = sendResponse.statusCode;
1818

1919
// We only want to do stuff on successful error sending, otherwise you get error replays without errors attached
20-
// If not using the base transport, we allow `undefined` response (as a custom transport may not implement this correctly yet)
21-
// If we do use the base transport, we skip if we encountered an non-OK status code
20+
// We skip if we encountered an non-OK status code
2221
if (!statusCode || statusCode < 200 || statusCode >= 300) {
2322
return;
2423
}

0 commit comments

Comments
 (0)