From 0492276601e1bca47e04f10680d55bebd5d8ced7 Mon Sep 17 00:00:00 2001 From: Nathan Neulinger Date: Fri, 27 Dec 2024 14:46:41 -0600 Subject: [PATCH] clean up lint complaints --- server/notification-providers/slack.js | 4 ++-- server/notification-providers/smtp.js | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/server/notification-providers/slack.js b/server/notification-providers/slack.js index 202aef12b..3566fb7ef 100644 --- a/server/notification-providers/slack.js +++ b/server/notification-providers/slack.js @@ -144,9 +144,9 @@ class Slack extends NotificationProvider { const baseURL = await setting("primaryBaseURL"); const serverIdentifier = await setting("serverIdentifier"); - const title = "Uptime Kuma Alert"; + let title = "Uptime Kuma Alert"; if (serverIdentifier) { - title = title + " (" + serverIdentifier + ")" + title = title + " (" + serverIdentifier + ")"; } let data = { "channel": notification.slackchannel, diff --git a/server/notification-providers/smtp.js b/server/notification-providers/smtp.js index 4e614fa06..a62973bd7 100644 --- a/server/notification-providers/smtp.js +++ b/server/notification-providers/smtp.js @@ -1,5 +1,6 @@ const nodemailer = require("nodemailer"); const NotificationProvider = require("./notification-provider"); +const { setSettings, setting } = require("../util-server"); const { DOWN } = require("../../src/util"); const { Liquid } = require("liquidjs"); @@ -49,7 +50,7 @@ class SMTP extends NotificationProvider { const serverIdentifier = await setting("serverIdentifier"); if (serverIdentifier) { - body = body + `\nServer Identifier: ${serverIdentifier}` + body = body + `\nServer Identifier: ${serverIdentifier}`; } } // subject and body are templated