Skip to content

Commit

Permalink
move explain comment to upper line for posible eslint issue of maxlin…
Browse files Browse the repository at this point in the history
…e character
  • Loading branch information
Nicolas Balduzzi committed May 3, 2018
1 parent b01d4db commit b974ab0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ function fastifyStatic (fastify, opts, next) {

if (opts.prefix === undefined) opts.prefix = '/'
const prefix = opts.prefix[opts.prefix.length - 1] === '/' ? opts.prefix : (opts.prefix + '/')
const schema = { schema: { hide: typeof opts.schemaHide !== 'undefined' ? opts.schemaHide : true } } // Set the schema hide property if defined in opts or true by default
// Set the schema hide property if defined in opts or true by default
const schema = { schema: { hide: typeof opts.schemaHide !== 'undefined' ? opts.schemaHide : true } }

fastify.get(prefix + '*', schema, function (req, reply) {
pumpSendToReply(req, reply, '/' + req.params['*'])
Expand Down

0 comments on commit b974ab0

Please sign in to comment.