Skip to content

Commit

Permalink
Remove unnecessary condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ferhany2002 committed Nov 6, 2024
1 parent 3daf4fa commit 595f63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion utils/emailUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const whitelistedEmails = process.env.WHITELISTED_EMAILS
: [];

function isWhitelistedEmail(from) {
return whitelistedEmails.length > 0 && whitelistedEmails.some(whitelistedEmail => from.includes(whitelistedEmail));
return whitelistedEmails.some(whitelistedEmail => from.includes(whitelistedEmail));
}

module.exports = {
Expand Down

0 comments on commit 595f63a

Please sign in to comment.