From a23b98db9e63bab894acfa571f550f5b04f2185f Mon Sep 17 00:00:00 2001 From: Neil <4138956+nwparker@users.noreply.github.com> Date: Sat, 29 Aug 2026 21:57:37 -0700 Subject: [PATCH] refactor(cli): remove redundant command membership check --- src/main/startup/cli-launch-redirect.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/startup/cli-launch-redirect.ts b/src/main/startup/cli-launch-redirect.ts index 8f7e5a673db..4011486d1cc 100644 --- a/src/main/startup/cli-launch-redirect.ts +++ b/src/main/startup/cli-launch-redirect.ts @@ -121,10 +121,9 @@ function getCommandLaunchArgs( return cliArgs } - const commandNames = new Set(options.commandNames) const command = commandIndex === -1 ? null : args[commandIndex] // Keep direct serve in-process so signals reach its full child tree. - return command && command !== 'serve' && commandNames.has(command) ? cliArgs : null + return command && command !== 'serve' ? cliArgs : null } function buildPackagedCliEntryPath(platform: NodeJS.Platform, resourcesPath: string): string {