I\'m using Express.js in my code with Node.js v7.3. In this I\'ve created a User Router which forwards the requests to my User Controlle
User Router
User Controlle
router.post('/login', function (req, res, next) { void userController.login(req, res); // I get the warning here });
You should use "void" operator.