From 7bd0df408d6ccfaed6023fee6dc6f89f88cb2050 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Thu, 3 Oct 2024 16:44:36 -0700 Subject: [PATCH] eslint: Fix unicorn/prefer-math-min-max. Signed-off-by: Anders Kaseorg --- web/src/message_view.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/message_view.ts b/web/src/message_view.ts index cd55a75d1a..dab3df7dd5 100644 --- a/web/src/message_view.ts +++ b/web/src/message_view.ts @@ -898,7 +898,7 @@ function min_defined(a: number | undefined, b: number | undefined): number | und if (b === undefined) { return a; } - return a < b ? a : b; + return Math.min(a, b); } function load_local_messages(msg_data: MessageListData, superset_data: MessageListData): boolean {