Showing 3 of 3 total issues
Function register
has 57 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
register: async function (server, options) {
// creates config for handler to be used in 'onPreResponse' function
var config = createConfig(options);
// make handleError available on request
Avoid too many return
statements within this function. Open
Open
return reply.continue; // continue processing the request
Avoid too many return
statements within this function. Open
Open
return reply.view(config.templateName, res).code(statusCode); // e.g 401