Skip to content

Commit

Permalink
chore: 🤖 add exit 1 instead of early return
Browse files Browse the repository at this point in the history
  • Loading branch information
heldrida committed Nov 5, 2024
1 parent 53d1b98 commit 293f4fa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/commands/sites/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,7 @@ const deployAction: SdkGuardedFunction<DeployActionArgs> = async ({
if (!root) {
output.error(t('somethingWrongDurUpload'));
output.printNewLine();

return;
process.exit(1);
}

output.spinner(t('startingSiteDeployment'));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,7 @@ export const waitUntilDeploymentFinishedAndInformUser = async ({
if (deploymentStatus === 'RELEASE_FAILED') {
output.error(t('deployNotFinishTryAgain'));
output.printNewLine();

return;
process.exit(1);
}

output.success(`${t('deployed')}!`);
Expand Down

0 comments on commit 293f4fa

Please sign in to comment.