Skip to content

Commit

Permalink
refactor: return directly (#168)
Browse files Browse the repository at this point in the history
  • Loading branch information
Fdawgs authored Jan 10, 2025
1 parent d15c3ef commit 7a1897c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/fastifyAwilixPlugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,7 @@ function plugin (fastify, opts, next) {
if (instance.awilixManager.config.asyncDispose) {
instance.awilixManager
.executeDispose()
.then(() => {
return instance.diContainer.dispose()
})
.then(() => instance.diContainer.dispose())
.then(done, done)
} else {
instance.diContainer.dispose().then(done, done)
Expand Down

0 comments on commit 7a1897c

Please sign in to comment.