Skip to content

Commit a72bb9f

Browse files
authored
refactor(index): return directly in arrow function (#215)
1 parent 02450d2 commit a72bb9f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,7 @@ function fastifyRedis (fastify, options, next) {
1717
return next(new Error(`Redis '${namespace}' instance namespace has already been registered`))
1818
}
1919

20-
const closeNamedInstance = (fastify) => {
21-
return fastify.redis[namespace].quit()
22-
}
20+
const closeNamedInstance = (fastify) => fastify.redis[namespace].quit()
2321

2422
if (client) {
2523
if (closeClient === true) {

0 commit comments

Comments
 (0)