Skip to content

Commit 5577600

Browse files
committed
Renaming cleanupStaticCache
1 parent 5331ddb commit 5577600

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const {addVendorHelper, removeVendorHelper, packRequirements} = require('./lib/z
77
const {injectAllRequirements} = require('./lib/inject');
88
const {installAllRequirements} = require('./lib/pip');
99
const {pipfileToRequirements} = require('./lib/pipenv');
10-
const {cleanup, cleanupStaticCache} = require('./lib/clean');
10+
const {cleanup, cleanupCache} = require('./lib/clean');
1111

1212
BbPromise.promisifyAll(fse);
1313

@@ -132,7 +132,7 @@ class ServerlessPythonRequirements {
132132
};
133133

134134
const cleanStatic = () => BbPromise.bind(this)
135-
.then(cleanupStaticCache);
135+
.then(cleanupCache);
136136

137137

138138
this.hooks = {

lib/clean.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function cleanup() {
3434
* Clean up static cache, remove all items in there
3535
* @return {Promise}
3636
*/
37-
function cleanupStaticCache() {
37+
function cleanupCache() {
3838
const cacheLocation = getUserCachePath(this.options);
3939
if (fse.existsSync(cacheLocation)) {
4040
this.serverless.cli.log(`Removing static caches at: ${cacheLocation}`);
@@ -54,4 +54,4 @@ function cleanupStaticCache() {
5454
}
5555
}
5656

57-
module.exports = {cleanup, cleanupStaticCache};
57+
module.exports = {cleanup, cleanupCache};

0 commit comments

Comments
 (0)