Skip to content

Commit a14c4a5

Browse files
committed
Remove redundant null check
1 parent d45dbaf commit a14c4a5

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

server/config/passport.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,7 @@ const getPrimaryEmail = (githubEmails) =>
129129
* Returns the first email if available, or null if emails array is missing/empty.
130130
*/
131131
const getGooglePrimaryEmail = (googleEmails) => {
132-
if (
133-
!googleEmails ||
134-
!Array.isArray(googleEmails) ||
135-
googleEmails.length === 0
136-
) {
132+
if (!Array.isArray(googleEmails) || googleEmails.length === 0) {
137133
return null;
138134
}
139135
const primaryEmail = googleEmails[0]?.value?.trim();

0 commit comments

Comments
 (0)