EnvironmentAgency/node-hapi-airbrake

View on GitHub

Showing 1 of 1 total issue

Function register has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  register: async (server, options) => {
    const result = Joi.validate(options, schema.options)
    if (result.error) {
      throw new Error(result.error)
    }
Severity: Minor
Found in lib/index.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language