Fix eslint warnings

This commit is contained in:
Louis Lam
2023-05-08 04:26:11 +08:00
parent aa8454b73f
commit 72c16c3aa2
3 changed files with 1 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ class Opsgenie extends NotificationProvider {
*/
async send(notification, msg, monitorJSON = null, heartbeatJSON = null) {
let opsgenieAlertsUrl;
let priority = (notification.opsgeniePriority == "") ? 3 : notification.opsgeniePriority;
let priority = (!notification.opsgeniePriority) ? 3 : notification.opsgeniePriority;
const textMsg = "Uptime Kuma Alert";
try {