Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
eslint: Fix unicorn/no-useless-length-check.
Anders Kaseorg7479702b8685
diff --git a/web/src/recent_view_ui.ts b/web/src/recent_view_ui.tsindex b5f410ff355..45bb410285f 100644--- a/web/src/recent_view_ui.ts+++ b/web/src/recent_view_ui.ts@@ -630,13 +630,11 @@ export function process_messages(let conversation_data_updated = false;const updated_rows = new Set<string>();- if (messages.length > 0) {- for (const msg of messages) {- if (recent_view_data.process_message(msg)) {- conversation_data_updated = true;- const key = recent_view_util.get_key_from_message(msg);- updated_rows.add(key);- }+ for (const msg of messages) {+ if (recent_view_data.process_message(msg)) {+ conversation_data_updated = true;+ const key = recent_view_util.get_key_from_message(msg);+ updated_rows.add(key);}}