Skip to content

Commit

Permalink
refactor(botonic-cli): use === instaed of ==
Browse files Browse the repository at this point in the history
  • Loading branch information
Iru89 committed Oct 1, 2024
1 parent 800a969 commit 48f02e1
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions packages/botonic-cli/src/commands/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -371,10 +371,7 @@ Deploying to AWS...
join(process.cwd(), BOTONIC_BUNDLE_FILE),
botConfigJson
)
if (
(deploy.response && deploy.response.status == 403) ||
!deploy.data.deploy_id
) {
if (deploy.response?.status === 403 || !deploy.data.deploy_id) {
const error = `Deploy Botonic Error: ${String(
deploy.response.data.status
)}`
Expand Down

0 comments on commit 48f02e1

Please sign in to comment.