Skip to content

Commit b0426fd

Browse files
author
Maciej Wilczyński
committed
Linting
1 parent 8e14c1a commit b0426fd

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

lib/layer.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const fse = require('fs-extra');
33
const path = require('path');
44
const JSZip = require('jszip');
55
const { writeZip, addTree } = require('./zipTree');
6-
const {sha256Path, getRequirementsLayerPath} = require("./shared");
6+
const { sha256Path, getRequirementsLayerPath } = require('./shared');
77

88
BbPromise.promisifyAll(fse);
99

@@ -23,14 +23,16 @@ function zipRequirements() {
2323

2424
const promises = [];
2525
if (fse.existsSync(zipCachePath)) {
26-
this.serverless.cli.log("Found cached Python Requirements Lambda Layer file");
26+
this.serverless.cli.log(
27+
'Found cached Python Requirements Lambda Layer file'
28+
);
2729
} else {
2830
const rootZip = new JSZip();
2931
const runtimepath = 'python';
3032

3133
promises.push(
3234
addTree(rootZip.folder(runtimepath), src).then(() =>
33-
writeZip(rootZip, zipCachePath)
35+
writeZip(rootZip, zipCachePath)
3436
)
3537
);
3638
}
@@ -39,7 +41,7 @@ function zipRequirements() {
3941
if (process.platform === 'win32') {
4042
fse.copySync(zipCachePath, targetZipPath);
4143
} else {
42-
fse.symlink(zipCachePath, targetZipPath, 'file')
44+
fse.symlink(zipCachePath, targetZipPath, 'file');
4345
}
4446
}
4547
});

lib/shared.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,7 @@ function getRequirementsWorkingPath(
9090
* @param {Object} options
9191
* @return {string}
9292
*/
93-
function getRequirementsLayerPath(
94-
hash,
95-
fallback,
96-
options
97-
) {
93+
function getRequirementsLayerPath(hash, fallback, options) {
9894
// If we want to use the static cache
9995
if (hash && options && options.useStaticCache) {
10096
hash = hash + '_slspyc.zip';

0 commit comments

Comments
 (0)