Remove Double If Statement
This commit is contained in:
@ -38,9 +38,7 @@ const passportOptions = {
|
|||||||
getSocialProvider(provider),
|
getSocialProvider(provider),
|
||||||
profile
|
profile
|
||||||
);
|
);
|
||||||
}
|
} else {
|
||||||
|
|
||||||
if (/github/.test(provider)) {
|
|
||||||
userObj = setProfileFromGithub(userObj, profile, profile._json);
|
userObj = setProfileFromGithub(userObj, profile, profile._json);
|
||||||
}
|
}
|
||||||
return userObj;
|
return userObj;
|
||||||
|
Reference in New Issue
Block a user