Skip to content
This repository was archived by the owner on Sep 22, 2022. It is now read-only.

Commit 166709c

Browse files
committed
Remove unnecessary parentheses
1 parent 6866b96 commit 166709c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ function keydown(event: KeyboardEvent): void {
3232
}
3333

3434
function focusable(el: Focusable): boolean {
35-
return (
36-
el.tabIndex >= 0 && (!el.disabled && !el.hidden && (!el.type || el.type !== 'hidden') && !el.closest('[hidden]'))
37-
)
35+
return el.tabIndex >= 0 && !el.disabled && !el.hidden && (!el.type || el.type !== 'hidden') && !el.closest('[hidden]')
3836
}
3937

4038
function restrictTabBehavior(event: KeyboardEvent): void {

0 commit comments

Comments
 (0)