eslint: Fix unicorn/explicit-length-check. (#32666)

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2024-12-11 09:19:46 -08:00
committed by GitHub
parent d446b0d672
commit 77f97762c6
74 changed files with 154 additions and 157 deletions

View File

@@ -354,7 +354,7 @@ export class DropdownWidget {
if (e.target === $search_input.get(0)) {
// Select first item if in search input.
first_item().trigger("click");
} else if (list_items.length !== 0) {
} else if (list_items.length > 0) {
$(e.target).trigger("click");
}
e.stopPropagation();