summaryrefslogtreecommitdiff
path: root/internal/run.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2023-06-07 09:31:35 +0300
committerPaul Buetow <paul@buetow.org>2023-06-07 09:31:35 +0300
commitfaf8b0f8715a280c7f7f98595042fd4897e8da0b (patch)
treeb4fbe2d477b7f0f1b95bfe3afbcb852a007f9e49 /internal/run.go
parent9ecc857cf39c8d110da9a0c99830d2a0d15efed8 (diff)
restyle
Diffstat (limited to 'internal/run.go')
-rw-r--r--internal/run.go16
1 files changed, 8 insertions, 8 deletions
diff --git a/internal/run.go b/internal/run.go
index 9583a69..586ebbd 100644
--- a/internal/run.go
+++ b/internal/run.go
@@ -3,27 +3,27 @@ package internal
import "context"
func Run(ctx context.Context, configFile string, renotify bool) {
- config, err := newConfig(configFile)
+ conf, err := newConfig(configFile)
if err != nil {
panic(err)
}
- if err := config.sanityCheck(); err != nil {
- notifyError(config, err)
+ if err := conf.sanityCheck(); err != nil {
+ notifyError(conf, err)
}
- state, err := readState(config)
+ state, err := readState(conf)
if err != nil {
- notifyError(config, err)
+ notifyError(conf, err)
}
- state = runChecks(ctx, state, config)
+ state = runChecks(ctx, state, conf)
if err := state.persist(); err != nil {
- notifyError(config, err)
+ notifyError(conf, err)
}
if subject, body, doNotify := state.report(renotify); doNotify {
- notify(config, subject, body)
+ notify(conf, subject, body)
}
}