style: collapse Math.min call to satisfy prettier formatting

This commit is contained in:
luyua9 2026-09-15 13:52:01 +08:00
parent cd5329bfc9
commit db14131e87

View file

@ -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,