Skip to content

Commit 9c84327

Browse files
committed
fix: add required curly braces to if statements (curly lint rule)
1 parent a48a1b5 commit 9c84327

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

packages/component/src/Transcript/LiveRegion/SendSending.tsx

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ const LiveRegionSendSending = () => {
3737
const keys = new Set<string>();
3838

3939
for (const [key, sendStatus] of sendStatusByActivityKey) {
40-
if (sendStatus !== SENDING) continue;
40+
if (sendStatus !== SENDING) {
41+
continue;
42+
}
4143

4244
if (!isPresentational(getActivityByKey(key))) {
4345
keys.add(key);
@@ -60,15 +62,21 @@ const LiveRegionSendSending = () => {
6062
}
6163
}
6264

63-
if (!sendingKeys.size) return;
65+
if (!sendingKeys.size) {
66+
return;
67+
}
6468

6569
const timeouts: ReturnType<typeof setTimeout>[] = [];
6670

6771
for (const key of sendingKeys) {
68-
if (announcedKeysRef.current.has(key)) continue;
72+
if (announcedKeysRef.current.has(key)) {
73+
continue;
74+
}
6975

7076
const timeout = setTimeout(() => {
71-
if (!sendingKeys.has(key)) return;
77+
if (!sendingKeys.has(key)) {
78+
return;
79+
}
7280

7381
announcedKeysRef.current.add(key);
7482
setTick(t => t + 1);

0 commit comments

Comments
 (0)