Merge pull request #9573 from adamisntdead/fix/Remove-Double-Regex-Check

Remove Double If Statement
This commit is contained in:
Jonathan
2016-07-06 10:15:58 +01:00
committed by GitHub

View File

@ -38,9 +38,7 @@ const passportOptions = {
getSocialProvider(provider),
profile
);
}
if (/github/.test(provider)) {
} else {
userObj = setProfileFromGithub(userObj, profile, profile._json);
}
return userObj;