Skip to content

Commit

Permalink
refactor: make cleanupFunctions private
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jun 8, 2022
1 parent 0a3a1aa commit bb77350
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ServerlessOffline.js
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit bb77350

Please sign in to comment.