Skip to content

Commit e042cb4

Browse files
committed
style: improve code formatting and readability in speed-review keyboard handler
Add consistent spacing and formatting to the keyboard event handler for better code readability. Ensures proper line breaks after control flow statements and maintains consistent code style.
1 parent 1b2549d commit e042cb4

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

apps/speed-review/src/pages/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,14 +353,19 @@ const SpeedReviewPage = (_props: { auth: unknown; setAuth: unknown }) => {
353353
e.preventDefault();
354354
const details = Array.from(document.querySelectorAll('details'));
355355
const openIndex = details.findIndex((d) => d.open);
356-
details.forEach((d) => { d.open = false; });
356+
details.forEach((d) => {
357+
d.open = false;
358+
});
357359
const nextIndex = openIndex === -1 ? 0 : openIndex + 1;
360+
358361
if (nextIndex < details.length) {
359362
details[nextIndex]!.open = true;
360363
details[nextIndex]!.scrollIntoView({ behavior: 'smooth', block: 'nearest' });
361364
}
365+
362366
break;
363367
}
368+
364369
case 'p':
365370
case 'P':
366371
dispatch({ type: 'TOGGLE_PAUSE' });

0 commit comments

Comments
 (0)