From bb7735045de1b6fdcdc97fcf4aa2bddebe9d84c7 Mon Sep 17 00:00:00 2001 From: Daniel Nalborczyk Date: Wed, 8 Jun 2022 15:21:36 -0400 Subject: [PATCH] refactor: make cleanupFunctions private --- src/ServerlessOffline.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ServerlessOffline.js b/src/ServerlessOffline.js index 8ae218c57..ec8f3dd5d 100644 --- a/src/ServerlessOffline.js +++ b/src/ServerlessOffline.js @@ -56,7 +56,7 @@ export default class ServerlessOffline { } this.hooks = { - 'offline:functionsUpdated:cleanup': this.cleanupFunctions.bind(this), + 'offline:functionsUpdated:cleanup': this.#cleanupFunctions.bind(this), 'offline:start': this.#startWithExplicitEnd.bind(this), 'offline:start:end': this.end.bind(this), 'offline:start:init': this.start.bind(this), @@ -140,7 +140,7 @@ export default class ServerlessOffline { } } - async cleanupFunctions() { + async #cleanupFunctions() { if (this.#lambda) { log.debug('Forcing cleanup of Lambda functions') await this.#lambda.cleanup()