minor-fix

This commit is contained in:
2024-01-05 14:17:56 +03:00
parent 2fba6af769
commit 58a91814ae
2 changed files with 2 additions and 5 deletions

View File

@@ -99,10 +99,7 @@ func SendEmail(to []string, event string, data map[string]interface{}) error {
mailgunAPIKey := os.Getenv("MAILGUN_API_KEY")
if len(mailgunAPIKey) > 0 {
err = SendMailgun(to, event, data)
if err != nil {
return err
}
return SendMailgun(to, event, data)
}
m := gomail.NewMessage()