Skip to content

Commit 9ee78fd

Browse files
committed
refactor: remove unused favicon import and update request handlers to use underscore for unused parameters
1 parent ec1be60 commit 9ee78fd

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

services/backend/src/fastify/plugins/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { FastifyInstance } from 'fastify'
2-
import fastifyFavicon from 'fastify-favicon'
32
import fastifyCors from '@fastify/cors'
43

54
export const registerFastifyPlugins = async (server: FastifyInstance): Promise<void> => {

services/backend/src/server.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,13 @@ export const createServer = async () => {
180180
deepLinking: false
181181
},
182182
uiHooks: {
183-
onRequest: function (request, reply, next) { next() },
184-
preHandler: function (request, reply, next) { next() }
183+
onRequest: function (_request, _reply, next) { next() },
184+
preHandler: function (_request, _reply, next) { next() }
185185
},
186186
staticCSP: true,
187187
transformStaticCSP: (header) => header,
188-
transformSpecification: (swaggerObject, request, reply) => {
188+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
189+
transformSpecification: (swaggerObject, _request, _reply) => {
189190
// Remove favicon route from the API specification
190191
if (swaggerObject.paths && swaggerObject.paths['/favicon.ico']) {
191192
delete swaggerObject.paths['/favicon.ico'];

0 commit comments

Comments
 (0)