summaryrefslogtreecommitdiff
path: root/internal/run.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-06-18 12:09:43 +0300
committerPaul Buetow <paul@buetow.org>2023-06-18 12:09:43 +0300
commit9e63c35bdb3f2a49f60eabb7f7f1ce8e3e7fe6e4 (patch)
tree3a0b81d23db9cec370c67f585b70373788926120 /internal/run.go
parent1a963283a18f9c3a69c92bf5b424748c9813d6d4 (diff)
add vet and lint checking - fix some lint errors
Diffstat (limited to 'internal/run.go')
-rw-r--r--internal/run.go9
1 files changed, 7 insertions, 2 deletions
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)
+ }
}
}