From b019d3aa2dc79de6ea4116fed0bb324aaf25e212 Mon Sep 17 00:00:00 2001 From: Alex Vanin Date: Thu, 16 Jun 2022 10:19:56 +0300 Subject: [PATCH] Fix mail notificator initialization --- main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.go b/main.go index 40fc2d6..08b596a 100644 --- a/main.go +++ b/main.go @@ -44,7 +44,7 @@ func main() { var mailNotificator *email.Notificator if cfg.Notifications.Email != nil { - mailNotificator := email.NewNotificator( + mailNotificator = email.NewNotificator( cfg.Notifications.Email.SMTP, cfg.Notifications.Email.Login, cfg.Notifications.Email.Password,