From 8407f88d41092467ad73246379fad041e1473266 Mon Sep 17 00:00:00 2001 From: Toph Tucker Date: Fri, 1 Nov 2024 01:41:54 -0700 Subject: [PATCH] minimize diff --- src/deploy.ts | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/deploy.ts b/src/deploy.ts index 3ddcf04e6..46bdeee49 100644 --- a/src/deploy.ts +++ b/src/deploy.ts @@ -542,11 +542,7 @@ class Deployer { workspaceId: deployTarget.workspace.id, accessLevel: deployTarget.accessLevel }); - deployTarget = { - create: false, - workspace: deployTarget.workspace, - project - }; + deployTarget = {create: false, workspace: deployTarget.workspace, project}; } catch (error) { if (isApiError(error) && error.details.errors.some((e) => e.code === "TOO_MANY_PROJECTS")) { this.effects.clack.log.error( @@ -961,12 +957,7 @@ export async function promptDeployTarget( if (effects.clack.isCancel(chosenProject)) { throw new CliError("User canceled deploy.", {print: false, exitCode: 0}); } else if (chosenProject !== null) { - // TODO(toph): initial env config - return { - create: false, - workspace, - project: existingProjects.find((p) => p.slug === chosenProject)! - }; + return {create: false, workspace, project: existingProjects.find((p) => p.slug === chosenProject)!}; } } else { const confirmChoice = await effects.clack.confirm({