Showing 2 of 2 total issues

Function Apn has 52 lines of code (exceeds 25 allowed). Consider refactoring.
Open

module.exports = function Apn(app, conf) {
  const getConf = conf || app.config('apn');
  if (!getConf) {
    return log('apn config not found!');
  }
Severity: Major
Found in index.js - About 2 hrs to fix

    Function sendNotification has 33 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

      const sendNotification = conn => (opts) => {
        const {
          message: alert,
          payload = {},
          badge = 1,
    Severity: Minor
    Found in index.js - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language