mirror of
https://github.com/zulip/zulip.git
synced 2026-07-15 21:03:26 +08:00
eslint: Fix @typescript-eslint/no-inferrable-types.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
b33988a553
commit
9ec4c6d852
@ -1517,7 +1517,7 @@ export function add_inaccessible_user(user_id: number): User {
|
||||
|
||||
export function get_user_by_id_assert_valid(
|
||||
user_id: number,
|
||||
allow_missing_user: boolean = !settings_data.user_can_access_all_other_users(),
|
||||
allow_missing_user = !settings_data.user_can_access_all_other_users(),
|
||||
): User {
|
||||
if (!allow_missing_user) {
|
||||
return get_by_user_id(user_id);
|
||||
|
||||
@ -28,7 +28,7 @@ export function close_active(): void {
|
||||
Micromodal.close(`${CSS.escape($micromodal.attr("id") ?? "")}`);
|
||||
}
|
||||
|
||||
export function open(modal_id: string, recursive_call_count: number = 0): void {
|
||||
export function open(modal_id: string, recursive_call_count = 0): void {
|
||||
if (modal_id === undefined) {
|
||||
blueslip.error("Undefined id was passed into open");
|
||||
return;
|
||||
|
||||
@ -472,7 +472,7 @@ export function try_parse_as_truthy<T>(val: (T | undefined)[]): T[] | undefined
|
||||
return result;
|
||||
}
|
||||
|
||||
export function is_valid_url(url: string, require_absolute: boolean = false): boolean {
|
||||
export function is_valid_url(url: string, require_absolute = false): boolean {
|
||||
try {
|
||||
let base_url;
|
||||
if (!require_absolute) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user