jay-depot/turnpike

View on GitHub
lib/server/middleware/domainWrapper.js

Summary

Maintainability
A
1 hr
Test Coverage

Function domain_wrapper has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function domain_wrapper(server) {
  return function(req, res, next) {
    req.domain = domain.create();

    req.domain.on('error', function(er) {
Severity: Minor
Found in lib/server/middleware/domainWrapper.js - About 1 hr to fix

There are no issues that match your filters.

Category
Status