From 9c3e9f682b8a8fde09fd848d7e51ee7628824a11 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Davor=20Raci=C4=87?= Date: Mon, 9 Feb 2026 07:56:07 +0100 Subject: [PATCH] chore: remove unreachable return statements after process.exit calls Remove 4 dead `return;` statements that immediately follow `process.exit(0)` calls in install.js. Since process.exit() terminates the process, the subsequent return statements are unreachable. Co-Authored-By: Claude Opus 4.6 --- tools/cli/commands/install.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tools/cli/commands/install.js b/tools/cli/commands/install.js index d2bac23e2..36875dab8 100644 --- a/tools/cli/commands/install.js +++ b/tools/cli/commands/install.js @@ -39,7 +39,6 @@ module.exports = { if (config.actionType === 'cancel') { await prompts.log.warn('Installation cancelled.'); process.exit(0); - return; } // Handle quick update separately @@ -54,7 +53,6 @@ module.exports = { await messageLoader.displayEndMessage(); process.exit(0); - return; } // Handle compile agents separately @@ -62,7 +60,6 @@ module.exports = { const result = await installer.compileAgents(config); await prompts.log.info(`Recompiled ${result.agentCount} agents with customizations applied`); process.exit(0); - return; } // Regular install/update flow @@ -71,7 +68,6 @@ module.exports = { // Check if installation was cancelled if (result && result.cancelled) { process.exit(0); - return; } // Check if installation succeeded