mirror of https://github.com/zulip/zulip.git
eslint: Fix unicorn/prefer-math-min-max.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
3b79a534a2
commit
7bd0df408d
|
@ -898,7 +898,7 @@ function min_defined(a: number | undefined, b: number | undefined): number | und
|
||||||
if (b === undefined) {
|
if (b === undefined) {
|
||||||
return a;
|
return a;
|
||||||
}
|
}
|
||||||
return a < b ? a : b;
|
return Math.min(a, b);
|
||||||
}
|
}
|
||||||
|
|
||||||
function load_local_messages(msg_data: MessageListData, superset_data: MessageListData): boolean {
|
function load_local_messages(msg_data: MessageListData, superset_data: MessageListData): boolean {
|
||||||
|
|
Loading…
Reference in New Issue