Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

eslint: Fix unicorn/no-negated-comparison.

Anders Kaseorgd567b6b37e8d
diff --git a/web/src/dropdown_widget.ts b/web/src/dropdown_widget.ts
index 35bca9c3458..bccc2f9a21f 100644
--- a/web/src/dropdown_widget.ts
+++ b/web/src/dropdown_widget.ts
@@ -459,7 +459,7 @@ export class DropdownWidget {
const list_items = this.list_widget.get_current_list();
if (
list_items.length === 0 &&
- !(e.key === "Escape") &&
+ e.key !== "Escape" &&
!this.sticky_bottom_option
) {
// Let the browser handle it.
diff --git a/web/src/message_list.ts b/web/src/message_list.ts
index 772fa8b121d..d555b4b94df 100644
--- a/web/src/message_list.ts
+++ b/web/src/message_list.ts
@@ -384,10 +384,8 @@ export class MessageList {
return (
this.data.can_mark_messages_read() &&
!this.reading_prevented &&
- !(
- user_settings.web_mark_read_on_scroll_policy ===
- web_mark_read_on_scroll_policy_values.never.code
- ) &&
+ user_settings.web_mark_read_on_scroll_policy !==
+ web_mark_read_on_scroll_policy_values.never.code &&
!(
user_settings.web_mark_read_on_scroll_policy ===
web_mark_read_on_scroll_policy_values.conversation_only.code &&