From db14131e87660b5e2c0158b1a0ce9e40510d2960 Mon Sep 17 00:00:00 2001 From: luyua9 Date: Tue, 15 Sep 2026 13:52:01 +0800 Subject: [PATCH] style: collapse Math.min call to satisfy prettier formatting --- gitnexus-cursor-integration/hooks/gitnexus-hook.cjs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/gitnexus-cursor-integration/hooks/gitnexus-hook.cjs b/gitnexus-cursor-integration/hooks/gitnexus-hook.cjs index f97cd2d56..7e4f2e384 100644 --- a/gitnexus-cursor-integration/hooks/gitnexus-hook.cjs +++ b/gitnexus-cursor-integration/hooks/gitnexus-hook.cjs @@ -360,10 +360,7 @@ function runGitNexusCli(cliPath, args, cwd, timeout) { windowsHide: true, }); } - const npxTimeout = Math.min( - timeout + 5000, - CURSOR_HOST_BUDGET_MS - CURSOR_NPX_HEADROOM_MS, - ); + const npxTimeout = Math.min(timeout + 5000, CURSOR_HOST_BUDGET_MS - CURSOR_NPX_HEADROOM_MS); return spawnSync(isWin ? 'npx.cmd' : 'npx', ['-y', 'gitnexus', ...args], { encoding: 'utf-8', timeout: npxTimeout,