Closed SpeedoPasanen closed 6 years ago
As a result, router.use(express.static(config.staticDirectory)) gets always called and crashes if staticDirectory is undefined.
router.use(express.static(config.staticDirectory))
function valueExists(value) { return typeof value !== 'undefined' || value !== null; }
Should return: !(typeof value === 'undefined' || value === null)
!(typeof value === 'undefined' || value === null)
PR here #7.
As a result,
router.use(express.static(config.staticDirectory))
gets always called and crashes if staticDirectory is undefined.function valueExists(value) { return typeof value !== 'undefined' || value !== null; }
Should return:
!(typeof value === 'undefined' || value === null)