Skip to content

Commit 3eae4a1

Browse files
committed
improves method readability
1 parent 9be9965 commit 3eae4a1

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lib/ruby_ui/combobox/combobox_controller.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,9 @@ export default class extends Controller {
3535
this.closePopover()
3636
}
3737

38-
const isToggleAllUnchecked = this.hasToggleAllTarget && !e.target.checked
39-
if (isToggleAllUnchecked) this.toggleAllTarget.checked = false
38+
if (this.hasToggleAllTarget && !e.target.checked) {
39+
this.toggleAllTarget.checked = false
40+
}
4041
}
4142

4243
inputContent(input) {

0 commit comments

Comments
 (0)