Skip to content

Commit

Permalink
review sugggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
rnegron committed Jan 21, 2025
1 parent 2c19d78 commit 9cfe217
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/cli/src/oclif/commands/migrate.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class MigrateCommand extends BaseCommand {

// 409 from the backend specifically signals pre-checks failed
if (response.status === 409) {
const softCheckErrors = _.get(response, 'json.errors');
const softCheckErrors = _.get(response, 'json.errors', []);
const formattedErrors = softCheckErrors.map((e) => `* ${e}`).join('\n');

this.log();
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/src/oclif/commands/promote.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ class PromoteCommand extends BaseCommand {
this.stopSpinner();
// 409 from the backend specifically signals pre-checks failed
if (response.status === 409) {
const softCheckErrors = _.get(response, 'json.errors');
const softCheckErrors = _.get(response, 'json.errors', []);
const formattedErrors = softCheckErrors.map((e) => `* ${e}`).join('\n');

this.log();
Expand Down

0 comments on commit 9cfe217

Please sign in to comment.