Remove Double If Statement

This commit is contained in:
Adam Kelly
2016-07-05 19:20:12 +01:00
committed by GitHub
parent bae34b697a
commit 55d199ec7f

View File

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