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/run.go | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'internal/run.go') diff --git a/internal/run.go b/internal/run.go index 586ebbd..0fd0ef1 100644 --- a/internal/run.go +++ b/internal/run.go @@ -1,6 +1,9 @@ package internal -import "context" +import ( + "context" + "log" +) func Run(ctx context.Context, configFile string, renotify bool) { conf, err := newConfig(configFile) @@ -24,6 +27,8 @@ func Run(ctx context.Context, configFile string, renotify bool) { } if subject, body, doNotify := state.report(renotify); doNotify { - notify(conf, subject, body) + if err := notify(conf, subject, body); err != nil { + log.Println("error:", err) + } } } -- cgit v1.2.3