From aae4cf3b7aa0ed48daaffe7cd47c3960bfbc8e24 Mon Sep 17 00:00:00 2001 From: ac360 Date: Wed, 19 Oct 2016 00:49:28 -0700 Subject: [PATCH] fix linting issues --- lib/plugins/aws/deployFunction/index.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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(