Skip to content

Commit 6b05bdc

Browse files
committed
Fixed improper demorgans-law case logic for logger warning
1 parent d65f69a commit 6b05bdc

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/application/tools/emailNotifications.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,13 @@ async function sendEmailNotification(notificationInfo, errors, debug = false) {
5858
}
5959

6060
// Ensure that the tlsRejectUnauthorized property is a boolean
61-
if (notificationInfo.tlsRejectUnauthorized && (notificationInfo.tlsRejectUnauthorized !== true || notificationInfo.tlsRejectUnauthorized !== false)) {
61+
if (
62+
notificationInfo.tlsRejectUnauthorized
63+
&& !(
64+
notificationInfo.tlsRejectUnauthorized === true
65+
|| notificationInfo.tlsRejectUnauthorized === false
66+
)
67+
) {
6268
logger.warn('The notificationInfo.tlsRejectUnauthorized should be a boolean value. The value provided will not be used.');
6369
}
6470

0 commit comments

Comments
 (0)