We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d45dbaf commit a14c4a5Copy full SHA for a14c4a5
1 file changed
server/config/passport.js
@@ -129,11 +129,7 @@ const getPrimaryEmail = (githubEmails) =>
129
* Returns the first email if available, or null if emails array is missing/empty.
130
*/
131
const getGooglePrimaryEmail = (googleEmails) => {
132
- if (
133
- !googleEmails ||
134
- !Array.isArray(googleEmails) ||
135
- googleEmails.length === 0
136
- ) {
+ if (!Array.isArray(googleEmails) || googleEmails.length === 0) {
137
return null;
138
}
139
const primaryEmail = googleEmails[0]?.value?.trim();
0 commit comments