From 9e63c35bdb3f2a49f60eabb7f7f1ce8e3e7fe6e4 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 18 Jun 2023 12:09:43 +0300 Subject: add vet and lint checking - fix some lint errors --- internal/notify.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'internal/notify.go') diff --git a/internal/notify.go b/internal/notify.go index 991743d..a89035b 100644 --- a/internal/notify.go +++ b/internal/notify.go @@ -29,6 +29,8 @@ func notify(conf config, subject, body string) error { []string{conf.EmailTo}, []byte(message)) } -func notifyError(conf config, err error) error { - return notify(conf, fmt.Sprintf("GOGIOS: An error occured: %v", err), err.Error()) +func notifyError(conf config, err error) { + if err := notify(conf, fmt.Sprintf("GOGIOS: An error occured: %v", err), err.Error()); err != nil { + log.Println("error: ", err) + } } -- cgit v1.2.3