mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
fix linting issues
This commit is contained in:
parent
d3a91c9254
commit
aae4cf3b7a
@ -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(
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user