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