File tree Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Expand file tree Collapse file tree 1 file changed +2
-11
lines changed Original file line number Diff line number Diff line change @@ -542,11 +542,7 @@ class Deployer {
542
542
workspaceId : deployTarget . workspace . id ,
543
543
accessLevel : deployTarget . accessLevel
544
544
} ) ;
545
- deployTarget = {
546
- create : false ,
547
- workspace : deployTarget . workspace ,
548
- project
549
- } ;
545
+ deployTarget = { create : false , workspace : deployTarget . workspace , project} ;
550
546
} catch ( error ) {
551
547
if ( isApiError ( error ) && error . details . errors . some ( ( e ) => e . code === "TOO_MANY_PROJECTS" ) ) {
552
548
this . effects . clack . log . error (
@@ -961,12 +957,7 @@ export async function promptDeployTarget(
961
957
if ( effects . clack . isCancel ( chosenProject ) ) {
962
958
throw new CliError ( "User canceled deploy." , { print : false , exitCode : 0 } ) ;
963
959
} else if ( chosenProject !== null ) {
964
- // TODO(toph): initial env config
965
- return {
966
- create : false ,
967
- workspace,
968
- project : existingProjects . find ( ( p ) => p . slug === chosenProject ) !
969
- } ;
960
+ return { create : false , workspace, project : existingProjects . find ( ( p ) => p . slug === chosenProject ) ! } ;
970
961
}
971
962
} else {
972
963
const confirmChoice = await effects . clack . confirm ( {
You can’t perform that action at this time.
0 commit comments