feathersjs/feathers-sendgrid

View on GitHub
src/hooks/render-template.js

Summary

Maintainability
A
1 hr
Test Coverage

Function renderTemplate has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export default function renderTemplate (options = {}) {
  options = Object.assign({}, defaults, options);

  if (!options.engine) {
    throw new Error(`You must provide a view engine instance that exposes the 'compile' method via 'options.engine'.`);
Severity: Minor
Found in src/hooks/render-template.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status