Skip to content

Commit

Permalink
fix(log): don't log undefined string
Browse files Browse the repository at this point in the history
  • Loading branch information
mikejpeters authored and Shereef committed Mar 8, 2022
1 parent d9461b6 commit f42711f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/plugin.js
Expand Up @@ -156,8 +156,7 @@ class Client {
sse,
routingRules,
manageResources,
tags,
prefixText;
tags;

return this._validateConfig()
.then(() => {
Expand Down Expand Up @@ -189,17 +188,15 @@ class Client {
routingRules = this.options.routingRules || null;
tags = this.options.tags || [];

if (keyPrefix) {
prefixText = `under the prefix '${keyPrefix}'`;
}

const deployDescribe = ['This deployment will:'];

if (this.cliOptions['delete-contents']) {
deployDescribe.push(`- Remove all existing files from bucket '${bucketName}'`);
}
deployDescribe.push(
`- Upload all files from '${distributionFolder}' to bucket '${bucketName}' ${prefixText}`
`- Upload all files from '${distributionFolder}' to bucket '${bucketName}'${
keyPrefix ? ` under the prefix '${keyPrefix}'` : ''
}`
);

if (this.cliOptions['config-change'] !== false && manageResources !== false) {
Expand Down

0 comments on commit f42711f

Please sign in to comment.