Skip to content

Commit ad3e90e

Browse files
author
smoghe-bw
committed
style: add braces to single-line if statement in retryIceOnFailed
1 parent 07f4e58 commit ad3e90e

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/v1/bandwidthRtc.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -352,7 +352,9 @@ export class BandwidthRtc {
352352

353353
// Re-publishes the SDP with iceRestart=true to trigger ICE renegotiation after a connection failure.
354354
private async retryIceOnFailed(pc: RTCPeerConnection, shouldRetry: boolean): Promise<void> {
355-
if (!shouldRetry) return;
355+
if (!shouldRetry) {
356+
return;
357+
}
356358

357359
const ICE_RESTART_TIMEOUT_MS = 30_000;
358360
const ICE_RESTART_RETRY_INTERVAL_MS = 5_000;

0 commit comments

Comments
 (0)