From eff4dc8c09e6a6a9f0886281eae28d77258a52cd Mon Sep 17 00:00:00 2001 From: appleboy Date: Sun, 21 Apr 2024 22:14:39 +0800 Subject: [PATCH] refactor: refactor code for improved efficiency - Remove an unnecessary empty line in the `PushToHuawei` function Signed-off-by: appleboy --- notify/notification_hms.go | 1 - 1 file changed, 1 deletion(-) diff --git a/notify/notification_hms.go b/notify/notification_hms.go index d5eaee41b..17c285642 100644 --- a/notify/notification_hms.go +++ b/notify/notification_hms.go @@ -183,7 +183,6 @@ func PushToHuawei(req *PushNotification, cfg *config.ConfYaml) (resp *ResponsePu } client, err = InitHMSClient(cfg, cfg.Huawei.AppSecret, cfg.Huawei.AppID) - if err != nil { // HMS server error logx.LogError.Error("HMS server error: " + err.Error())