diff --git a/notify/schedule/schedule.go b/notify/schedule/schedule.go index afd6396..173518e 100644 --- a/notify/schedule/schedule.go +++ b/notify/schedule/schedule.go @@ -62,7 +62,7 @@ func (s *Scheduler) getNotifyFunc(n notify.Notification) (func(), error) { case "telegram": if nil == s.telegram { - return nil, errors.New("No notifier. Unable to create Notification") + return nil, errors.New("no notifier. Unable to create Notification") } f = func() { diff --git a/notify/telegram/telegram.go b/notify/telegram/telegram.go index e2447f5..1f681a9 100644 --- a/notify/telegram/telegram.go +++ b/notify/telegram/telegram.go @@ -19,7 +19,7 @@ type Telegram struct { func New(conf config.Config) (*Telegram, error) { bot, err := tg.NewBotAPI(conf.Telegram.Token) if err != nil { - return nil, fmt.Errorf("Could not create telegram Bot; %w", err) + return nil, fmt.Errorf("could not create telegram Bot; %w", err) } return &Telegram{