yannickcr/node-chromelogger

View on GitHub

Showing 1 of 1 total issue

Function _log has 30 lines of code (exceeds 25 allowed). Consider refactoring.
Open

ChromeLogger.prototype._log = function(res) {
  // Stop here if the headers were already sent
  if (res.headersSent || res._header) {
    return this.emit('error', new Error('You can\'t log with Chrome Logger if the headers were already sent'));
  }
Severity: Minor
Found in lib/chromelogger.js - About 1 hr to fix
    Severity
    Category
    Status
    Source
    Language