Skip to content

Commit

Permalink
minimize diff
Browse files Browse the repository at this point in the history
  • Loading branch information
tophtucker committed Nov 1, 2024
1 parent a6ac45e commit 8407f88
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions src/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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({
Expand Down

0 comments on commit 8407f88

Please sign in to comment.