linagora/openpaas-esn

View on GitHub
modules/linagora.esn.messaging.email/backend/webserver/controllers/index.js

Summary

Maintainability
A
1 hr
Test Coverage

Function exports has 30 lines of code (exceeds 25 allowed). Consider refactoring.
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'}});

    There are no issues that match your filters.

    Category
    Status