Skip to content

Commit e6330d2

Browse files
authored
refactor(index): return directly in arrow function (#400)
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
1 parent 3be6c28 commit e6330d2

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,7 @@ const fastifyReplyFrom = fp(function from (fastify, opts, next) {
164164
}
165165

166166
if (retryDelay) {
167-
requestImpl = createRequestRetry(request, this, (req, res, err, retries) => {
168-
return retryDelay({ err, req, res, attempt: retries, getDefaultDelay, retriesCount })
169-
})
167+
requestImpl = createRequestRetry(request, this, (req, res, err, retries) => retryDelay({ err, req, res, attempt: retries, getDefaultDelay, retriesCount }))
170168
} else {
171169
requestImpl = createRequestRetry(request, this, getDefaultDelay)
172170
}

0 commit comments

Comments
 (0)