mirror of
https://github.com/verdaccio/verdaccio.git
synced 2024-12-16 21:56:25 -05:00
fix: lodash instead typeof
This commit is contained in:
parent
68a559ebac
commit
a6d6e58a80
1 changed files with 1 additions and 1 deletions
|
@ -104,7 +104,7 @@ module.exports = function(config_hash) {
|
|||
if (err.code === 'ECONNABORT' && res.statusCode === 304) {
|
||||
return next();
|
||||
}
|
||||
if (typeof res.report_error !== 'function') {
|
||||
if (_.isFunction(res.report_error) === false) {
|
||||
// in case of very early error this middleware may not be loaded before error is generated
|
||||
// fixing that
|
||||
error_reporting_middleware(req, res, _.noop);
|
||||
|
|
Loading…
Reference in a new issue