mirror of https://github.com/zulip/zulip.git
eslint: Fix @typescript-eslint/no-unnecessary-boolean-literal-compare.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
6368cf17cb
commit
cbe227af6f
|
@ -302,7 +302,7 @@ export async function ensure_enter_does_not_send(page: Page): Promise<void> {
|
|||
await page.waitForSelector("#send_later_popover");
|
||||
const enter_sends = await page.$eval(
|
||||
".enter_sends_choice input[value='true']",
|
||||
(el) => el.checked === true,
|
||||
(el) => el.checked,
|
||||
);
|
||||
|
||||
if (enter_sends) {
|
||||
|
|
|
@ -517,7 +517,7 @@ export function can_access_topic_history(sub: StreamSubscription): boolean {
|
|||
}
|
||||
|
||||
export function can_preview(sub: StreamSubscription): boolean {
|
||||
return sub.subscribed || !sub.invite_only || sub.previously_subscribed === true;
|
||||
return sub.subscribed || !sub.invite_only || sub.previously_subscribed;
|
||||
}
|
||||
|
||||
export function can_change_permissions(sub: StreamSubscription): boolean {
|
||||
|
@ -762,7 +762,7 @@ export function create_sub_from_server_data(
|
|||
delete attrs.subscribers;
|
||||
|
||||
sub = {
|
||||
render_subscribers: !page_params.realm_is_zephyr_mirror_realm || attrs.invite_only === true,
|
||||
render_subscribers: !page_params.realm_is_zephyr_mirror_realm || attrs.invite_only,
|
||||
newly_subscribed: false,
|
||||
is_muted: false,
|
||||
desktop_notifications: null,
|
||||
|
|
Loading…
Reference in New Issue