modules/linagora.esn.messaging.email/backend/webserver/controllers/index.js
Function exports
has 30 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
module.exports = function(dependencies, lib) {
function getUser(req, res) {
if (!req.user) {
return res.status(404).json({error: {code: 404, message: 'Not found', details: 'User not found'}});