diff --git a/lib/plugins/aws/deployFunction/index.js b/lib/plugins/aws/deployFunction/index.js index 546cd99d3..8df9ae52b 100644 --- a/lib/plugins/aws/deployFunction/index.js +++ b/lib/plugins/aws/deployFunction/index.js @@ -75,11 +75,14 @@ class AwsDeployFunction { }; // Get function stats - let stats = fs.statSync(this.options.functionObj.artifact); - let fileSizeInBytes = stats.size; - let fileSizeInMegabytes = fileSizeInBytes / 1000000.0; + const stats = fs.statSync(this.options.functionObj.artifact); + const fileSizeInBytes = stats.size; + const fileSizeInMegabytes = fileSizeInBytes / 1000000.0; this.serverless.cli.log( - `Uploading function: ${this.options.function} (${Math.round(fileSizeInMegabytes * 100) / 100}MB)...`); + [ + `Uploading function: ${this.options.function}`, + `(${Math.round(fileSizeInMegabytes * 100) / 100}MB)...`, + ].join('')); // Perform upload return this.sdk.request(