Skip to content

Commit

Permalink
refactor: refactor code for improved efficiency
Browse files Browse the repository at this point in the history
- Remove an unnecessary empty line in the `PushToHuawei` function

Signed-off-by: appleboy <[email protected]>
  • Loading branch information
appleboy committed Apr 21, 2024
1 parent c05352b commit eff4dc8
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion notify/notification_hms.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit eff4dc8

Please sign in to comment.