Skip to content

Commit

Permalink
refactor(plugin): prefix unused param with underscore (#161)
Browse files Browse the repository at this point in the history
Signed-off-by: Frazer Smith <[email protected]>
  • Loading branch information
Fdawgs authored Jan 6, 2025
1 parent a648a7f commit b8e657c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const fp = require('fastify-plugin')
const { parse } = require('fast-uri')

function fastifyUrlData (fastify, options, next) {
function fastifyUrlData (fastify, _options, next) {
fastify.decorateRequest('urlData', function (key) {
const scheme = this.headers[':scheme'] ? this.headers[':scheme'] : this.protocol
const host = this.hostname
Expand Down

0 comments on commit b8e657c

Please sign in to comment.