From e87cc06d68d94c4f81453339ccdbcbb3ccedfaf4 Mon Sep 17 00:00:00 2001 From: Yat Ho Date: Mon, 23 Mar 2026 22:13:04 +0800 Subject: [PATCH] fix(web): `unicorn/prefer-math-trunc` (#8720) --- web/src/prefs-dialog.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/prefs-dialog.js b/web/src/prefs-dialog.js index 032b6565c..a93ffcaca 100644 --- a/web/src/prefs-dialog.js +++ b/web/src/prefs-dialog.js @@ -15,7 +15,7 @@ import { export class PrefsDialog extends EventTarget { static _initTimeDropDown(e) { for (let index = 0; index < 24 * 4; ++index) { - const hour = (index / 4) | 0; + const hour = Math.trunc(index / 4); const mins = (index % 4) * 15; const value = index * 15; const content = `${hour}:${mins || '00'}`;