eslint: Fix @typescript-eslint/no-unnecessary-boolean-literal-compare.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2023-12-21 16:07:57 -08:00
parent 6368cf17cb
commit cbe227af6f
2 changed files with 3 additions and 3 deletions

View File

@ -302,7 +302,7 @@ export async function ensure_enter_does_not_send(page: Page): Promise<void> {
await page.waitForSelector("#send_later_popover"); await page.waitForSelector("#send_later_popover");
const enter_sends = await page.$eval( const enter_sends = await page.$eval(
".enter_sends_choice input[value='true']", ".enter_sends_choice input[value='true']",
(el) => el.checked === true, (el) => el.checked,
); );
if (enter_sends) { if (enter_sends) {

View File

@ -517,7 +517,7 @@ export function can_access_topic_history(sub: StreamSubscription): boolean {
} }
export function can_preview(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 { export function can_change_permissions(sub: StreamSubscription): boolean {
@ -762,7 +762,7 @@ export function create_sub_from_server_data(
delete attrs.subscribers; delete attrs.subscribers;
sub = { 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, newly_subscribed: false,
is_muted: false, is_muted: false,
desktop_notifications: null, desktop_notifications: null,