linagora/openpaas-esn

View on GitHub
backend/core/oauth/helpers.js

Summary

Maintainability
A
1 hr
Test Coverage

Function upsertUserAccount has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function upsertUserAccount(user, account, callback) {
  var status = 'created';

  function accountExists(userAccount) {
    return userAccount.type === account.type && userAccount.data && userAccount.data.provider === account.data.provider && userAccount.data.id === account.data.id;
Severity: Minor
Found in backend/core/oauth/helpers.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status