Skip to content

Commit 917400a

Browse files
authored
Merge pull request #173 from mcode/fix-notification-info-case-logic
Fixed improper demorgans-law case logic for logger warning
2 parents d65f69a + f34f025 commit 917400a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/application/tools/emailNotifications.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ 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+
&& typeof notificationInfo.tlsRejectUnauthorized !== 'boolean'
64+
) {
6265
logger.warn('The notificationInfo.tlsRejectUnauthorized should be a boolean value. The value provided will not be used.');
6366
}
6467

0 commit comments

Comments
 (0)