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

@@ -275,7 +275,7 @@ function format_dm(
latest_msg_id: number,
): DirectMessageContext {
const recipient_ids = people.user_ids_string_to_ids_array(user_ids_string);
if (!recipient_ids.length) {
if (recipient_ids.length === 0) {
// Self DM
recipient_ids.push(people.my_current_user_id());
}
@@ -1459,7 +1459,7 @@ function move_focus_to_visible_area(): void {
const $element_in_row = $(element_in_row);
let $inbox_row = $element_in_row.closest(".inbox-row");
if (!$inbox_row.length) {
if ($inbox_row.length === 0) {
$inbox_row = $element_in_row.closest(".inbox-header");
}