Skip to content

Commit

Permalink
fix: remove unused var
Browse files Browse the repository at this point in the history
  • Loading branch information
wd-David committed Jul 18, 2022
1 parent 6e0f3f7 commit c056887
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/plugins/sensible.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@ import sensible, { SensibleOptions } from '@fastify/sensible'
*
* @see https://github.com/fastify/fastify-sensible
*/
export default fp<SensibleOptions>(async (fastify, opts) => {
export default fp<SensibleOptions>(async (fastify) => {
fastify.register(sensible)
})
2 changes: 1 addition & 1 deletion src/plugins/support.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export interface SupportPluginOptions {

// The use of fastify-plugin is required to be able
// to export the decorators to the outer scope
export default fp<SupportPluginOptions>(async (fastify, opts) => {
export default fp<SupportPluginOptions>(async (fastify) => {
fastify.decorate('someSupport', function () {
return 'hugs'
})
Expand Down
2 changes: 1 addition & 1 deletion src/plugins/swagger.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fp from 'fastify-plugin'
import swagger, { FastifyDynamicSwaggerOptions } from '@fastify/swagger'

export default fp<FastifyDynamicSwaggerOptions>(async (fastify, opts) => {
export default fp<FastifyDynamicSwaggerOptions>(async (fastify) => {
fastify.register(swagger, {
openapi: {
info: {
Expand Down
4 changes: 2 additions & 2 deletions src/routes/root.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { FastifyPluginAsync } from 'fastify'

const root: FastifyPluginAsync = async (fastify, opts): Promise<void> => {
fastify.get('/', async function (request, reply) {
const root: FastifyPluginAsync = async (fastify): Promise<void> => {
fastify.get('/', async function () {
return { root: true }
})
}
Expand Down

0 comments on commit c056887

Please sign in to comment.