Skip to content

Commit 215d747

Browse files
committed
Fix comment for addWarmUpFunctionToService and return nothing from it
1 parent bd2ec52 commit 215d747

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/index.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ class WarmUp {
5656
}
5757

5858
await this.createWarmUpFunctionArtifact(this.functionsToWarmup, this.resolvedOptions.region, this.warmupOpts.pathFile)
59-
await this.addWarmUpFunctionToService()
59+
this.addWarmUpFunctionToService()
6060
}
6161

6262
/**
@@ -307,8 +307,6 @@ module.exports.warmUp = async (event, context) => {
307307

308308
/**
309309
* @description Add warm up function to service
310-
*
311-
* @return {Object} Warm up service function object
312310
* */
313311
addWarmUpFunctionToService () {
314312
/** SLS warm up function */
@@ -331,8 +329,6 @@ module.exports.warmUp = async (event, context) => {
331329
this.warmupOpts.tags ? { tags: this.warmupOpts.tags } : {},
332330
this.warmupOpts.vpc ? { vpc: this.warmupOpts.vpc } : {}
333331
)
334-
335-
return this.serverless.service.functions.warmUpPlugin
336332
}
337333

338334
/**

0 commit comments

Comments
 (0)