yify-pop/yify-pop

View on GitHub
app/helpers/passport/user.js

Summary

Maintainability
A
1 hr
Test Coverage

Function lookupByPassport has 29 lines of code (exceeds 25 allowed). Consider refactoring.
Open

  this.lookupByPassport = function (authType, profile, callback) {
    var typeData = strategies[authType]
      , key = String(profile[typeData.keyField]) // Important, want to use strings, not nums
      , passport;

Severity: Minor
Found in app/helpers/passport/user.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status