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

@@ -153,7 +153,7 @@ function process_result(data: MessageFetchResponse, opts: MessageFetchOptions):
// messages not tracked in unread.ts during this fetching process.
message_util.do_unread_count_updates(messages, true);
if (messages.length !== 0) {
if (messages.length > 0) {
if (opts.msg_list) {
if (opts.validate_filter_topic_post_fetch) {
opts.msg_list.data.filter.try_adjusting_for_moved_with_target(messages[0]);