Skip to content

Commit

Permalink
refactor(index): prefix unused params with underscores (#153)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <frazer.dev@icloud.com>
  • Loading branch information
Fdawgs authored Jan 7, 2025
1 parent 36113cb commit 606ced0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
const { ToadScheduler } = require('toad-scheduler')
const fp = require('fastify-plugin')

function plugin (fastify, opts, next) {
function plugin (fastify, _opts, next) {
const scheduler = new ToadScheduler()
fastify.decorate('scheduler', scheduler)

fastify.addHook('onClose', (fastify, done) => {
fastify.addHook('onClose', (_fastify, done) => {
scheduler.stop()
done()
})
Expand Down

0 comments on commit 606ced0

Please sign in to comment.