Skip to content

Commit

Permalink
refactor(CLI): Remove empty line in info command
Browse files Browse the repository at this point in the history
  • Loading branch information
pgrzesik committed Oct 13, 2021
1 parent ca705b8 commit 03b4b3d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/plugins/aws/info/index.js
Expand Up @@ -74,7 +74,7 @@ class AwsInfo {
BbPromise.bind(this).then(this.displayStackOutputs),

'after:aws:info:gatherData': () => {
if (this.gatheredData.info.resourceCount >= 450) {
if (this.gatheredData && this.gatheredData.info.resourceCount >= 450) {
log.warning(
`You have ${
this.gatheredData.info.resourceCount
Expand All @@ -89,7 +89,6 @@ class AwsInfo {
if (this.serverless.processedInput.commands.join(' ') !== 'info') return;

writeText(
null,
`${style.aside('service:')} ${this.serverless.service.service}`,
`${style.aside('stage:')} ${this.provider.getStage()}`,
`${style.aside('region:')} ${this.provider.getRegion()}`,
Expand Down

0 comments on commit 03b4b3d

Please sign in to comment.