Skip to content

Commit

Permalink
style: remove trailing whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs committed Nov 3, 2024
1 parent 42baea0 commit 3f3fedc
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ async function createApp (fastify, opts) {
await app.restart()
return { status: 'ok' }
})

app.addHook('onClose', async () => {
if(!app.closingRestartable) {
console.log('closing the app because of restart')
Expand All @@ -37,7 +37,7 @@ async function createApp (fastify, opts) {
console.log('closing the app because server is stopping')
}
})

return app
}

Expand Down Expand Up @@ -81,7 +81,7 @@ is closed. The hook is called with the new app instance as an argument.
app.addPreRestartHook(async (app) => {
console.log('preRestart hook called')
})

app.addOnRestartHook(async (app) => {
console.log('onRestart hook called')
})
Expand Down

0 comments on commit 3f3fedc

Please sign in to comment.