Skip to content

Commit

Permalink
refactor: make method private
Browse files Browse the repository at this point in the history
  • Loading branch information
dnalborczyk committed Jul 16, 2022
1 parent f164baa commit 7fa36af
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ServerlessOffline.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ export default class ServerlessOffline {
'offline:start': this.#startWithExplicitEnd.bind(this),
'offline:start:end': this.end.bind(this),
'offline:start:init': this.start.bind(this),
'offline:start:ready': this.ready.bind(this),
'offline:start:ready': this.#ready.bind(this),
}
}

Expand Down Expand Up @@ -88,7 +88,7 @@ export default class ServerlessOffline {
await Promise.all(eventModules)
}

async ready() {
async #ready() {
await this.#listenForTermination()
}

Expand Down Expand Up @@ -136,7 +136,7 @@ export default class ServerlessOffline {
* */
async #startWithExplicitEnd() {
await this.start()
await this.ready()
await this.#ready()
this.end()
}

Expand Down

0 comments on commit 7fa36af

Please sign in to comment.