Skip to content

Commit af1687d

Browse files
authored
refactor: remove usage of deprecated request.routeConfig (#530)
1 parent 22bdeb1 commit af1687d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -387,9 +387,7 @@ async function fastifyStatic (fastify, opts) {
387387
}
388388

389389
async function serveFileHandler (req, reply) {
390-
// TODO: remove the fallback branch when bump major
391-
/* c8 ignore next */
392-
const routeConfig = req.routeOptions?.config || req.routeConfig
390+
const routeConfig = req.routeOptions?.config
393391
return pumpSendToReply(req, reply, routeConfig.file, routeConfig.rootPath)
394392
}
395393
}

0 commit comments

Comments
 (0)