From 5ce5697c36e4e0c8fa32619fee005a13468546a1 Mon Sep 17 00:00:00 2001 From: Simon Nilsson Date: Wed, 27 Mar 2024 23:55:51 +0100 Subject: [PATCH] Update server/notification-providers/cellsynt.js Co-authored-by: Frank Elsinga --- server/notification-providers/cellsynt.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/server/notification-providers/cellsynt.js b/server/notification-providers/cellsynt.js index 766ad29b..ad08aacb 100644 --- a/server/notification-providers/cellsynt.js +++ b/server/notification-providers/cellsynt.js @@ -26,9 +26,8 @@ class Cellsynt extends NotificationProvider { const resp = await axios.post("https://se-1.cellsynt.net/sms.php", null, data); if (resp.data == null || resp.data.includes("Error")) { throw new Error(resp.data); - } else { - return okMsg; } + return okMsg; } catch (error) { this.throwGeneralAxiosError(error); }