Skip to content

Commit f34f025

Browse files
committed
use boolean check instead of complex logic
1 parent 6b05bdc commit f34f025

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/application/tools/emailNotifications.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,7 @@ async function sendEmailNotification(notificationInfo, errors, debug = false) {
6060
// Ensure that the tlsRejectUnauthorized property is a boolean
6161
if (
6262
notificationInfo.tlsRejectUnauthorized
63-
&& !(
64-
notificationInfo.tlsRejectUnauthorized === true
65-
|| notificationInfo.tlsRejectUnauthorized === false
66-
)
63+
&& typeof notificationInfo.tlsRejectUnauthorized !== 'boolean'
6764
) {
6865
logger.warn('The notificationInfo.tlsRejectUnauthorized should be a boolean value. The value provided will not be used.');
6966
}

0 commit comments

Comments
 (0)